Top "Criteriaquery" questions

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 I …

java jpa-2.0 criteriaquery
JPA Query selecting only specific columns without using Criteria Query?

Is it possible to select, say, only properties A and B from an object using a JPA query without using …

java jpa jpa-2.0 jpa-2.1 criteriaquery
JPA Criteria query group by uses only the id

This is a sample entity: public class Account{ @Id Long id Double remaining; @ManyToOne AccountType type } public class AccountType{ @Id …

java hibernate jpa group-by criteriaquery
Condition left join in CriteriaQuery

Hi everybody I am trying to do this in CriteriaQuery, I was searching so long but I can't found anything …

jpa orm left-join clause criteriaquery
jpa 2 hibernate limit (max results) to a CriteriaQuery

maybe it's a silly question but I cannot find the answer in the docs: How can set a limit to …

java hibernate jpa-2.0 criteriaquery
JPA CriteriaQuery compare Timestamp ignore time portion

Let say I have a column in Oracle DB like this: SOMETHING_TS TIMESTAMP WITH TIME ZONE And I would …

java oracle jpa timestamp criteriaquery
How to check a collection size in JPA2

Consider the following: @Entity public class Book { private List<String> authors; @ElementCollection public List<String> getAuthors() { …

jpa-2.0 criteriaquery
JPA 2.1 CriteriaQuery between Date

How can I use CriteriaQuery with BETWEEN clause in Date? I have tried this without success; the DAO method: public …

jpa between criteriaquery
jpa criteria query duplicate values in fetched list

I'm observing what I think is an unexpected behaviour in JPA 2 when fetching a list attribute with a criteria query. …

java list jpa criteriaquery
How to rewrite this query using JPA Criteria Query?

public class Entity { private boolean suspended; private String code; @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime") @DateTimeFormat(style = "S-") …

jpa criteriaquery