Posts by Felipe Marinho • 2,873 points
108 posts
-
0
votes1
answer1539
viewsA: ERROR: column "type" of relation "tb_person" does not exist
As indicated by the error itself, there is no column with the name tipo on the table tb_pessoa. Check if they exist in your database, since they are not being created by Hibernate due to property…
-
2
votes1
answer457
viewsA: Error trying to use Arraylist methods (symbol not recognized)
This error is occurring because you have named your class as ArrayList. Thus, the method one tries to evoke is a method of its class ArrayList called add(String s) which does not exist, rather than…
-
1
votes1
answer367
viewsA: Optimization Inserts Hibernate when there is relationship @Manytomany
This is because Hibernate supports an additional feature of a collection called Bag. One Bag is a collection that may have duplicated members, but is not ordered. The best feature of a Bag is that…
-
0
votes1
answer53
viewsA: Add a SET list value to Mysql
Instead of using CONCAT use CONCAT_WS: UPDATE clans SET Admins = CONCAT_WS(',', Admins, 'NomeDoJogador') WHERE Name = 'NomeDoClan'
-
1
votes2
answers74
viewsA: Skip file when entering an Exception
Your method is locking because your Try/catch is out of the for and when an exception is thrown, the loop is stopped. Just move Try/catch inside the for and it will try to read all the files. In…
-
1
votes2
answers1268
viewsA: Search in a table in Mysql with Java
The problem is that, in the section below, you are concatenating the class instance itself ObjetoLivro instead of the book name: WHERE NOMELIVRO LIKE '%"+pesquisar+"%'"); //Deveria ser WHERE…
-
0
votes2
answers1507
viewsA: Java and Hibernate date formatting
There are several ways you can map, which one you will use depends on the JPA/ORM version. Starting with version 5.0, Hibernate now supports the Date and Time API of java 8. You simply add the…
-
9
votes3
answers543
viewsA: How to display a multidimensional array without looping?
Just use the method deepToString(Object[] a); int array[][] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}; System.out.println(Arrays.deepToString(array)); Exit: [[1, 2, 3], [4, 5, 6], [7, 8, 9]]…