api « Eclipse « JPA Q&A





2. JPA 2 Criteria API - Exception converting JPQL to Criteria API query with Eclipselink    stackoverflow.com

I'm having trouble converting a JPA query to the use the Criteria API I have the following query that attempts to find a ServiceUser matching a passed address parameter. ...

4. JPQL "NOT MEMBER OF" query using criteria API    stackoverflow.com

Given the following JPA annotated entity classes:

@Entity
@Table("foo")
public class Foo {
    @Id private int id;
    @Column(name="name") private String name;
    @ManyToMany
    ...

5. CriteriaBuilder.isEmpty on an ElementCollection vs. JPQL approach    stackoverflow.com

I'm trying to do a simple query using the JPA2 criteria API on the following class(es): // a lot of imports @Entity public class Thing { enum Type { FIRST, SECOND, ...

6. Converting Hibernate Criteria to Eclipse Link    stackoverflow.com

Please help me on this,

    DetachedCriteria dc = DetachedCriteria.forClass(UserAppSession.class) ;

    dc.add(Restrictions.eq("appSession.id", session.getId())) ;            
 ...

7. EclipseLink JPA: Can I run multiple queries from one builder?    stackoverflow.com

I have a method that builds and runs a Criteria query. The query does what I want it to, specifically it filters (and sorts) records based on user input. Also, the ...