The Dynamic, typesafe queries in JPA 2.0 article is a very good one on this topic, actually the best one I’ve found so far online, even better than the Chapter 23 Using the Criteria API to Create Queries from the Java EE 6 tutorials (that contains some mistakes).
More Related Contents:
- Hibernate Annotations – Which is better, field or property access?
- Do I need elements in persistence.xml?
- JPA CascadeType.ALL does not delete orphans
- How can I validate two or more fields in combination?
- Why does JPA have a @Transient annotation?
- How to annotate MYSQL autoincrement field with JPA annotations
- Setting default values for columns in JPA
- How to properly express JPQL “join fetch” with “where” clause as JPA 2 CriteriaQuery?
- Hibernate – @ElementCollection – Strange delete/insert behavior
- JPA: unidirectional many-to-one and cascading delete
- JPA Query selecting only specific columns without using Criteria Query?
- Which annotation should I use: @IdClass or @EmbeddedId
- can someone please explain me @MapsId in hibernate?
- How do I properly cascade save a one-to-one, bidirectional relationship on primary key in Hibernate 3.6
- Silently ignored remove()
- JPA Criteria builder IN clause query
- How to define unidirectional OneToMany relationship in JPA
- Hibernate generates negative id values when using a sequence
- java.lang.IllegalStateException: Multiple representations of the same entity with @ManyToMany 3 entities
- Inherited abstract class with JPA (+Hibernate)
- org.hibernate.MappingException: Could not determine type for: java.util.Set [duplicate]
- Rollback on every checked exception, whenever I say @Transactional
- Hibernate triggering constraint violations using orphanRemoval
- Name attribute in @Entity and @Table
- Setting a JPA timestamp column to be generated by the database?
- Really dynamic JPA CriteriaBuilder
- Why should anybody put annotations on the getters or setters when using JPA to map the classes?
- Change Table Name of an Entity on runtime? [duplicate]
- JPA Select latest instance for each item
- How to map one class to different tables using hibernate/jpa annotations