criteriaquery
JPQL query: selecting a single Boolean which is the AND of two of object's fields
Suppose that I have a JPA-annotated class called MyData with a primary identifier field (BigDecimal type called \"primaryID\"), and two Boolean fields called \"fieldA\" and \"fieldB\".开发者_JAVA百科W[详细]
2023-04-07 10:15 分类:问答building a criteria query with jpa 2.0 by using a dynamic list
I\'m a bit confused while creating a criteriaQuery with JPA 2.0. Prerequisites: I have a Gui, where the user can mark some checkboxes of (let us say) wheatherstations with some options like temperatu[详细]
2023-04-04 23:54 分类:问答Complex Many-to-Many JPA CriteriaQuery
I have two entities, Ablum and Image, which are in many to many relationship. I wanna make a criteria query that to get all Albums and the counts on how many Images they have.[详细]
2023-03-31 06:18 分类:问答Why does this Hibernate Criteria Query fails with "No explicit selection and an implicit one cold not be determined"?
I have an entity called Bucket, and I\'m trying to build a criteria query to determine whether there is a Bucket stored with the \"Name\" property equals to \"Bucket_1\". So basically it is an exists[详细]
2023-03-21 06:20 分类:问答How do I dynamically create CriteriaQuery
I wan开发者_如何学Ct to create equivalent CriteriaQuery to this query : select u from User u where u.name = \"John\" and u.surname = \"Black\" and u.middlename = \"Small\";[详细]
2023-02-26 07:42 分类:问答JPA Eclipselink Subquery in where clause with between, CriteriaBuilder and metamodel
I want to do this query with metamodel but I can\'t!! I dont know how to do this. MYSQL QUERY (with this query I want to get all the rows from the Clases table that are teaching in this moment):[详细]
2023-02-14 11:59 分类:问答How to discover Implicit multiple root
here\'s my show case code: CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQuery<Tuple> q = cb.createTupleQuery();[详细]
2023-02-11 18:26 分类:问答Hibernate Criteria Query to outer join sub-queries results
I have a requirement to convert the below SQL query into a criteria query. There is just one table and note that it is not a case for self join.[详细]
2023-02-07 09:17 分类:问答JPA 2 CriteriaQuery Question
I am just starting out with JPA 2 criteria query API and finding it tough to learn. Looked around the net a bit, but haven\'t found good examples/tutorials yet. Can someone suggest a good tutorial and[详细]
2023-02-05 21:22 分类:问答In JPA 2, using a CriteriaQuery, how to count results
I am rather new to JPA 2 and it\'s CriteriaBuilder / CriteriaQuery API: CriteriaQuery javadoc CriteriaQuery in the Java EE 6 tutorial[详细]
2022-12-31 09:00 分类:问答