JPA
-
Enterprise Java
Type Safe Queries for JPA’s Native Query API
When you’re using JPA – sometimes – JPQL won’t do the trick and you’ll have to resort to native SQL.…
Read More » -
Enterprise Java
How JPA 2.1 has become the new EJB 2.0
Beauty lies in the eye of the beholder. So does “ease”: Learn more about SQL Result Set Mappings and handle…
Read More » -
Enterprise Java
Enumerating @NamedQuery within @NamedQueries
Introduction If you’re a Java developer using JPA, chances are that you’ve declared one or more @NamedQuery objects on your…
Read More » -
Enterprise Java
JPA Database Schema Generation
For some time now, most of the main implementations of JPA, like Hibernate, EclipseLink or OpenJPA, offered ways to generate…
Read More » -
Enterprise Java
A beginner’s guide to JPA and Hibernate Cascade Types
Introduction JPA translates entity state transitions to database DML statements. Because it’s common to operate on entity graphs, JPA allows…
Read More » -
Enterprise Java
JPA 2.1: Unsynchronized persistence context
The JPA version 2.1 brings a new way how to handle the synchronization between the persistence context and the current…
Read More » -
Enterprise Java
Hibernate Locking Patterns – How does PESSIMISTIC_READ and PESSIMISTIC_WRITE work
Introduction Java Persistence API comes with a thorough concurrency control mechanism, supporting both implicit and explicit locking. The implicit locking…
Read More » -
Enterprise Java
JPA 2.1 criteria delete/update and temporary tables in Hibernate
Since JPA version 2.0 the EntityManager offers the method getCriteriaBuilder() to dynamically build select queries without the need of string…
Read More » -
Enterprise Java
JPA Tutorial – The ULTIMATE Guide (PDF Download)
EDITORIAL NOTE: In this post, we feature a comprehensive JPA Tutorial. The Java Persistence API (JPA) is a Java programming…
Read More »