Posts by Gabriel Faria • 119 points
7 posts
-
2
votes3
answers514
viewsQ: Return number of days for the end of the year
How could I make to return the amount of days to the end of the year, counting on today. import java.time.LocalDate; import java.time.Month; import java.time.Period; import…
-
-1
votes2
answers716
viewsA: Using java change method
The class was like this: package br.com.caelum.jdbc.teste; import java.util.Calendar; import br.com.caelum.jdbc.dao.ContatoDao; import br.com.caelum.jdbc.modelo.Contato; public class TesteAltera {…
-
1
votes2
answers716
viewsQ: Using java change method
How I change the database using the method changes in a Testaaltera class. I use the model gets and sets to change the data? I need to use the Search(int id) method to return an object? //pesquisa…
-
-1
votes2
answers180
viewsQ: Float element to direct
How could I float this image to direct without breaking the page? in this image, the css is like this: #centro-distribuicao { float: right; width: 550px; }…
-
0
votes0
answers98
viewsQ: Error while persisting object
I’m trying to persist an object and I’m getting this error. Does anyone know how to solve? if you need the classes, persistence.xml, I send. I am not running "on server" only by main method. I’m not…
jpaasked Gabriel Faria 119 -
3
votes2
answers470
viewsQ: Problems opening connection to JSF and JPA
There’s something wrong with mine persistence.xml? I can’t open the connection. My Bean is like this: import java.util.List; import javax.faces.bean.ManagedBean; import…
-
6
votes2
answers1446
viewsQ: Remove String Connectors with Regular Expression
How could I remove connectors: "e", "do", "da", "do", "das", "de", "di", "du". From a sentence without changing the whole name. Example the name: Daniela de Andrade. I wanted to remove only "from",…