Posts by Cristian • 11 points
2 posts
-
0
votes3
answers219
viewsA: Get maximum table value (JPA) with Java 8
I was able to solve using the resource below: Integer max = maxId.hashCode(); Thank you!
-
1
votes3
answers219
viewsQ: Get maximum table value (JPA) with Java 8
I have a method in my DAO class that returns a general list of the table: public List<ObjetoRisco> findAll() { return manager.createQuery("select o from ObjetoRisco o",…