This tag is for questions specifically about new features of version 2.1 of the Java Persistence API.
The Java Persistence API version 2.1 improves JPA 2.0 with features like bulk operations, stored procedure support and new JPQL keywords.
Main features included in JPA 2.1 is:
- Converters - allowing custom code conversions between database and object types.
- Criteria Update/Delete - allows bulk updates and deletes through the Criteria API.
- Stored Procedures - allows queries to be defined for database stored procedures.
- Schema Generation
- Entity Graphs - allow partial or specified fetching or merging of objects.
- JPQL/Criteria enhancements - arithmetic sub-queries, generic database functions, join ON clause, TREAT option.