Posts by Luciano Virmes • 21 points
5 posts
-
0
votes1
answer91
viewsA: How to reduce Page return fields in an API?
I believe that the way you are doing is not ideal: you search all and then page them. In my view the right would be to fetch all paged: the findAll spring can receive a Peageable as parameter. This…
-
0
votes1
answer44
viewsA: How to add objects to a repository class? And how can the user choose the amount of array in which he will add the data?
Hello! First, you can take from your constructor, in the repository class those instances of books that you do up there. livros[0] = new Livro(); livros[1] = new Livro(); Once done, in your main you…
javaanswered Luciano Virmes 21 -
0
votes1
answer248
viewsA: Error saving form with Hibernate: could not execute statement
Hello! Give a revised code, more precisely here: <input type="text" jsf:valeu="#{alunoBean.aluno.endereco.bairro}" id="bairro"/> You traded the value for worth!…
-
0
votes2
answers63
viewsA: How to add new table row with contents from text box with post ajax
First you need to include jquery in your html at the bottom of the page (before including your.js script!): Done this, you can, put your HTML adding products within a form tag: Remembering that your…
-
2
votes1
answer208
viewsA: Java - DAO+Hibernate+JPA+JDBC+Tomcat+Servlet
In DAO you can separate your database access logic from your controller logic, for example. In the case of a product registration system we would have the following classes: Product, Product,…