JPA 2.0 Public Review Draft is Now Available

The Expert Group for JPA (JSR 317) has released its Public Review Draft, and, Linda, the EG lead, has written a Summary of the major changes in the JPQL, including:


• Extensions to the "." operator for improved navigation
• Mapping with KEY and VALUE operators
• Ordered Lists
• Non-polymorphic Queries with the TYPE operator
• Case Expressions and NULLIF and COALESCE operators
• Scalar Expressions in the SELECT clause

The expert group is soliciting feedback at jsr-317-pdr-feedback at sun dot com. Linda promises a follow-up blog entry describing the changes to the Criteria API, and she also gave a fast (10m) presentation as part of the GFv3 Prelude launch (details, replay, slides).

Also, recall that the (production-ready) Reference Implementation of JPA will be EclipseLink - Gordon also gave an overview for the GFv3 Prelude launch (details, replay, slides).


Did a concept similar to JDO Fetch Groups make it into JPA 2.0? I couldn't find it glancing at the spec draft...
Were there some technical concern around including this type of feature?

Posted by Cyril on November 17, 2008 at 01:19 AM PST #

Hi Cyril. I'll ping Linda on this. - eduard/o

Posted by Eduardo Pelegri-Llopart on November 25, 2008 at 09:26 AM PST #

Hi folks. Cyril posted to my blog as well. (Hi Cyril!)

We have been discussing functionality to address this area, and a facility like fetch groups is likely to make it into JPA in future. Due to tightness of schedules, however, it is looking less likely for the 2.0 release. Stay tuned, though....

Posted by Linda DeMichiel on November 26, 2008 at 02:25 AM PST #

has there been any discussion of a target release for JPA 2.0. i ask because i am eagerly awaiting the Criteria based query API so that i do not have to hard wire my product to Hibernate or other vendor implementation and i'm finding the string based JPQL insufficient for my needs.

Posted by stanton on December 08, 2008 at 02:31 AM PST #

Yes. JPA 2.0 is targeted to be released along with Java EE 6, in time for JavaOne 2009.

Posted by Linda DeMichiel on December 08, 2008 at 03:37 AM PST #

Post a Comment:
Comments are closed for this entry.