Posts by Luis Antonio • 31 points
3 posts
-
0
votes1
answer47
viewsA: Error trying to save data to database via Java
Check that your Client class is annotated with @Entity. Whether it has a variable annotated with @Id and @Generatedvalue As in the example of documentation: @Generatedvalue…
javaanswered Luis Antonio 31 -
0
votes2
answers342
viewsA: Problem with @form Primefaces - JSF
On the Add and Update buttons: <p:commandButton value="Adicionar" action="#{produtoBean.adicionar()}" update="@form"></p:commandButton> Exchange the action for actionListener Will stay…
-
2
votes2
answers191
viewsQ: What is the best way to sort lists in Java?
I have a list, for example: I want to know how best to sort that list by name and age respectively. public class Pessoa{ private String nome; private int idade; // gets e sets omitidos } public…
javaasked Luis Antonio 31