Posts by Mychell Teixeira • 95 points
11 posts
-
4
votes1
answer378
viewsA: JPA Deletes database data each time it restarts
The problem in the parameter below: spring.jpa.hibernate.ddl-auto=create That defines that the entire base will be recreated every time Hibernate is started Change to update to create only the new…
-
-1
votes2
answers803
viewsA: Mysql query with LIKE
Try using ilike to disregard uppercase letters: SELECT `user_email`, `user_username`, `user_nome`, `user_sobrenome`, `user_token` FROM `usuario` WHERE `user_nome` ILIKE ' %Juscelino%' OR…
mysqlanswered Mychell Teixeira 95 -
0
votes1
answer86
viewsA: Error using <f:Event>
The error log helps you solve the problem: Method must have Signature "void method(Componentsystemevent)" but has Signature "void method()" Try rewriting the method with the following signature:…
-
0
votes2
answers293
viewsA: Putting date and time in a backup in file . sh
Try to use it like this: DATE=`date +%Y-%m-%d:%H:%I:%M`
-
1
votes2
answers55
viewsA: Error searching/searching for attribute in a vector
The setters of your Tcarro class are wrong. You do so plate=this.plate, it should be so this.plate = plate. The other setters should be corrected as well. The Tcarro class should look as follows:…
-
0
votes1
answer114
viewsA: I have a Java class where one of the attributes is an Arraylist of another object. How to bring this from the database?
Make a Join between the two tables: Select obj1.id as id_obj1, obj1.nome, obj2.id as id_obj2, obj2.coluna_a, obj2.coluna_b FROM objeto1 obj1 JOIN objeto2 obj2 ON obj1.id = obj2.id_obj1 Then you go…
-
0
votes1
answer366
viewsA: I cannot create a Feature in the src/test/java folder
Dude, change the eclipse perspective to Navigator: Window -> Show View -> Navigator so you can create the new file.
-
0
votes1
answer21
viewsA: I’m trying to enter a name and then play it, but I want to make it only possible to put letters
You can use the following as an example: String entrada; String nome = ""; do { entrada = JOptionPane.showInputDialog("Informe seu nome: "); if (entrada.matches("^[a-zA-Z]*$")) { nome = entrada;…
javaanswered Mychell Teixeira 95 -
0
votes1
answer23
viewsA: I’m having trouble displaying my JSF project view -
I believe Nullpointer is occurring. Creates an init() method and notes as @Postconstruct. In the init() method you instantiate your attribute g. @PostContruct private void init() { g = new Grupo();…
-
0
votes2
answers30
viewsA: Images in the Mysql BD in the java language
Hello, you can create a table in your database with the following columns: table: file columns: length (integer), content_type (Character Varying), id (integer), content (bytea), name (Character…
-
0
votes2
answers603
viewsA: Sending Email with Java
Make sure it’s not your antivirus that’s not blocking the upload. I was having this same problem and it was my Avast: I did a test, disabled Avast and ran the same code, and it worked! Follow the…