News on Monday
more>>
SharePoint Tech Report
more>>


   

 
 
Download Current Issue
ISSUE 2/1/2010 PDF

Need Back Issues?
DOWNLOAD HERE

Receive the print Edition?


 
blogs tab
Visual Studio 2010 Release Candidate Available Today
A Visual Studio 2010 release candidate is available on MSDN.
02/09/2010 09:45 AM EST

Is Microsoft eyeing Office subscription pricing?
Microsoft may be preparing to offer a new Office pricing option called "union," which charges the same for cloud as on-premises.
02/01/2010 09:38 AM EST

Facebook rewrites PHP runtime
Facebook is about to open source its own PHP runtime, written from scratch for speed.
01/30/2010 08:53 PM EST

 

Events calendar tab
2/9/2010 to 2/13/2010
San Francisco
IDG World Expo

2/10/2010 to 2/12/2010
San Francisco
BZ Media

2/17/2010 to 2/25/2010
Atlanta
Python Software Foundation

2/19/2010 to 2/20/2010
Los Angeles
SCALE

2/21/2010 to 2/24/2010
Las Vegas
IBM


 
Most Read Latest News Blog Resources

JSR 317 Persistently Improving


JPA 2.0 will offer better mapping and modeling of object relations.



January 15, 2008 — 
In the days when even the largest systems had what would now be considered extremely limited resources, data handling was fairly straightforward. There once was RAM and hard storage, and, outside of virtual memory, the two never mixed. Data in RAM was there until the program ended, while data on the hard drive was considered the authoritative version.

But as resource constraints faded, all of this changed: RAM could be stored for later use, and in-memory data didn't always have to vanish when the program finished running. Today, data persistence is an issue for developers at many levels.

Persistence has blurred the lines between data at runtime and data for storage, and that's why the Java Community Process has been working to improve the practice through JSR 317, the specification for the Java Persistence API (JPA) version 2.0.

Linda DeMichiel, senior staff engineer at Sun and specification lead on JSR 317, said that the new version of JPA would be based on lessons learned in other persistence systems. Specifically, she's hoping to bring criteria-based dynamic query generation into the API.

“Hibernate has a criteria API that is regarded quite well in the Hibernate community. TopLink has a similar API from which we can also learn. Of course, query by example has been around for decades,” said DeMichiel.

“We want to look at adding an API for so-called criteria queries. Think of them as a different way to formulate dynamic queries that is more object oriented then those used in string-based queries. Think of criteria as being formulated more in terms of a query tree: the nodes of the tree are centered around the object category. You build up a category tree at runtime. That gives a bit more user friendly manner for constructing dynamic queries,” said DeMichiel.

While the JPA 2.0 specification won't be complete until the end of 2008, DeMichiel noted that she and the expert committee on the JSR 317 team have already done a great deal of work around “topics related to expanding the object relational mapping functionality and the modeling of Java persistence,” as she put it.

This is work that needs to be done before the rest of the specification takes shape, she said, because the JPA query language will be adapted to include new modifications around these capabilities.

Also on the docket for JPA 2.0 are numerous new features added to meet real-world requirements. DeMichiel said that these have been numerous, and she takes these as a good sign for the health of JPA in the wild. “We've had a lot of requests for collections of basic types, collections of embeddables,” she explained, adding that foreign key mapping for one-to-many relationships was also added at user request. “Support for ordered lists, where the ordering is made persistent in the database” will additionally be present. “All of those you'll see coming out in the first draft of the spec we release,” said DeMichiel.

But, it’s still too early to estimate when that first draft will arrive, she said, even though the final version of JPA 2.0 should arrive at the same time the rest of Java EE 6 takes shape, sometime at the end of 2008.


Share this link: http://www.sdtimes.com/link/31655
 

Add comment


Name*
Email*  
Country     


  • Comment
  • Preview
Loading