BT

ORM Tool Hibernate 4.3 Released, Implementing JPA 2.1 Specification

by Jan Stenberg on Dec 31, 2013 |

The final version of Hibernate ORM 4.3, a Java-based Object-Relational Mapping, ORM, framework, was recently released, bringing support for stored procedures and entity graphs. Hibernate 4.3 is a certified implementation of the JPA 2.1 Specification, JSR 338, released in May 2013.

Main focus for this release has been on support for the JPA 2.1 specification and the new features defined which include:

  • Standardized support for working with stored procedure and function calls, across both providers and database vendors.
  • Definition and execution of UPDATE and DELETE queries can now be made in a type-safe way.
  • Entity listeners, for implementing lifecycle events in separate classes, may now use the CDI standard, (JSR-299), for injection of dependencies.
  • AttributeConverters, which enable conversions of basic values between the representation in the database and in the corresponding objects.
  • Entity Graphs for defining how an entity and its sub-elements are loaded. How a graph is loaded may also be changed dynamically.
  • A standardized way of how schema generation is performed across providers together with a baseline of configuration settings all providers understand.
  • Synchronization of persistence context with the current transaction can now be controlled via SynchronizationType.
  • An object can now be constructed using argument values returned from a SQL query by using the @ConstructorResult annotation.

Other significant changes, not related to the new JPA specification, include:

  • Increased support for OSGi environments. The plan is to further improve the support in Hibernate 5.
  • Support for inline dirty checking, finding which entities state has changed, based on new bytecode enhancement support within Hibernate.

Documentation has been updated to correspond with the new version.

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

JPA 2.1 by Neil Stockton

So Hibernate finally has JPA 2.1 support, so long after other implementations (EclipseLink, DataNucleus) supported JPA 2.1. Just wonder why this one gets publicised yet others don't?
Still no sign of OpenJPA activity on it.

Support for inline dirty checking, finding which entities state has changed, based on new bytecode enhancement support within Hibernate.

Didn't a Hibernate originator once say "bytecode enhancement is evil" ? Why the change of heart?

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

1 Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT