Blog from Jun 03, 2009

Milestone 2 of OpenJPA 2.0 is now complete and a distribution is available for download. This download includes a preview of many new OpenJPA and JPA 2.0 Early Access features including enhanced support for embeddables, JPQL enhancements, new locking modes, and many other enhancements. Visit the OpenJPA 2.0 Early Access 2 distribution page for additional details.

This is an implementation of an early-draft specification developed under the Java Community Process (JCP) and is made available for testing and evaluation purposes only. The code is not compatible with any specification of the JCP.

The seventh iteration of OpenJPA 2.0 is complete! Content of this iteration is based upon the 03/13/2009 draft of the JPA 2.0 specification. This iteration contains these new features:

  • New MapKeyEnumerated and MapKeyTemporal annotations and equivalent XML elements for tagging the key of a map collection as either an enumerated or temporal type.
  • Base support for JSR-303 Bean Validation including basic configuration and lifecycle-based event validation.
  • Support the use of delimited identifiers within annotation attributes for a subset of mapping annotations when used with the Derby and DB2 databases. Support for additional databases will be added in future iterations.
  • JPQL subqueries now support derived path expressions and the use of KEY() with map collections.
  • OSGI bundle metadata has been added to the OpenJPA jar. This simplifies the use of OpenJPA in an OSGi environment such as Apache Felix.
  • OrderBy no longer requires specifying the name attribute when applied to a collection of basic type.

These new features are available in the latest nightly snapshot build. Be aware that the JPA 2.0 specification is not final so these features are subject to change.

Many thanks to those who contributed to this iteration! If you'd like to be a contributor to the OpenJPA project, please post your interest on the dev mailing list or contact one of the active committers.

-Jeremy