Cheat Sheet - New Features in JPA 2.1
Cheat Sheet - New Features in JPA 2.1
Cheat Sheet - New Features in JPA 2.1
New Features
in JPA 2.1
www.thoughts-on-java.org
Attribute Converter,
Named Stored Procedure Query,
Stored Procedure Query,
Criteria API Bulk Operations,
Constructor Result Mapping,
Unsynchronized Persistence Context,
Named Entity Graph,
Entity Graph,
Generating DB Schema,
Programmatic Named Queries,
CDI-Support in Entity Listener and
JPQL Enhancements.
Each feature comes with a short description and some code snippets to bring
you all the information you need for your daily work.
Take care,
www.thoughts-on-java.org
www.thoughts-on-java.org
www.thoughts-on-java.org
www.thoughts-on-java.org
www.thoughts-on-java.org
JPQL Enhancements
There were several enhancements to JPQL. You can now:
- define additional join parameters with ON,
- call database functions with FUNCTION and
- downcast entities with TREAT.
www.thoughts-on-java.org