Home » Search

About CriteriaQuery

71-80 of 85Refresh
Issue
1

ClassCastException in Tuple.get

(); CriteriaQuery cq = cb.createTupleQuery(); Root rootDemandAnswer
Forum
1

Distinct Error

). The above query printout came from a CriteriaQuery.toString. The Query was built up using the CriteriaBuilder
Forum
1

Help with JPA2 Criteria and conditional operator grouping

))   From the JPA2 criteria: CriteriaBuilder builder = em.getCriteriaBuilder();   CriteriaQuery
Forum
1

IMK Stall with certain query

: String param = "%"+begining+"%"; CriteriaBuilder cb = DataBase.em.getCriteriaBuilder(); CriteriaQuery
Issue
1

Internal exception: NPE on criteria query with IN clause and empty collection

expression: CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQuery cq = cb
Forum
1

java.sql.Date equals comparison not working with CriteriaAPI

();                 CriteriaBuilder cb = em.getCriteriaBuilder();         CriteriaQuery
Forum
1

JPA does not seem to be db agnostic

= em.getCriteriaBuilder(); CriteriaQuery query = criteriaBuilder.createQuery
Forum
1

Multi selection and distinct in a criteria query

.multiselect(builder.distinct($1), $2)... ?? Alex distinct is a method of CriteriaQuery. There are some
Forum
1

Null enums and IS (NOT) NULL: NullPointerException

Hello. I'm getting NullPointerException when adding %enum field% IS (NOT) NULL or == (!=) NULL in WHERE clause. The same exception using CriteriaQuery. java.lang.NullPointerException at com.objectdb.o.REG.z(REG.java:310) at com.objectdb.o.REG.u(REG.java:161) at com.objectdb.o.CMN.(CMN
Forum
1

Query with FETCH JOIN returns multiple results instead of one.

CriteriaQuery.   Thanks and best regards,    Maciek You should be able to filter duplicates