Most voted "criteria" questions
A typical ORM frameworks mechanism that allows the creation of queries in the database in a dynamic and object-oriented way. When writing a query using Criteria an API is used instead of writing a query using a defined language (SQL).
Learn more…57 questions
Sort by count of
-
0
votes1
answer86
views -
0
votes1
answer41
viewsHow to return data through the Java Criteriaapi from more than one table?
I have a class that doesn’t persist: Peopleware.java public class PessoaDadosSearch{ private Long idPessoaDadosSearch; private String nome; private String cpf; private String municipioResidente;…
-
0
votes0
answers19
viewsSubtraction of an Expression<sql. Timestamp> in the criteriaBuilder
I have the following implementation: private static Specification<Record> sinceMinusMinutes(Integer minutes) { return (Specification<Record>) (root, query, criteriaBuilder) ->…
-
-1
votes1
answer2120
viewsList the 10 Best Selling Products
I need to list the 10 best selling products from a table using Hibernate. The table item_sale has the following columns: amount id_product valor_unitario value_sub_Total…
-
-1
votes1
answer84
viewsJoin with criteria
I have the following entities: public class Mapa { //many to one private ItemMapa itemMapa; } public class ItemMapa { //many to one private Classe classe; } public class Classe { private Long id; }…
-
-1
votes1
answer46
viewsUsing a NOT Criteria with Hibernate
Currently, I have a survey with Criteria that brings me results normally, but I want to add an implementation like NOT. Does anyone have any idea how I could do that? I put in the code a comment…
-
-1
votes1
answer34
viewsManual Spring Boot Paging with Criteria
Hello, I am maintaining a code that should make a pagination using criteria put in the parameters of the method informs that pageable has never been used and I do not know how to implement it.…