Posted by: Jack Vaughan
data architecture, Java
The Hibernate object-relational mapper has gained wide acceptance for performing the still critical task of converting objects to relational entries and relational entries to objects. For a number of years it has been stewarded, in effect, by Red Hat, which discussed new Hibernate developments, among a host of issues, at its recent JBoss World event in Boston.
Of late, the Hibernate project has come to include functionality of the Plain-Old Java Object (POJO) kind for a number of cool uses. As well, Hibernate has been updated to support features found in Java Persistence API 2 (JPA 2). Of course, there is a good gang of many that just wants to stick with POH (Plain-Old Hibernate). Theoretically, they should be able to keep on keeping on with their familiar data models, but the new stuff is there if they like.
At JBoss World, Emmanuel Bernard, Principal Software Engineer, Red Hat, highlighted new Hibernate capabilities such as a type-safe Criteria API, a static memtamodel generator and a fetch profile. He admitted that some of the additions are not quite his cup of tea. He outlined a new partial generator, but then concluded, ”don’t use it.”
“We were against it, but,” he admitted, “we have to support [JPA 2]. If you have to [use it] you can.” Meanwhile, the general view is that Hibernate adherence to other Java standards is valuable, giving it a longer life span, perhaps.
Some of Bernard’s recent work revolves around Hibernate Search, which brings Lucene search features to the Hibernate API set. Last month, Hibernate Search 3.2 was released. Its search capability is an example of how Hibernate is expanding to do more with data bases and across the enterprise’s various stores. The bet here is that data-oriented software generally will be pushed more and more over time to provide the Google-style searchability with which end users have become familiar. Witness the general push to REST formats.
While we are Hibernating, we’d like to point out that Cameron McKenzie and crew at sister site TheServerSide.com have recently produced a series of Hibernate 3.5 tutorials. McKenzie has created a slew of useful stories since taking TheServerSide.com helm in March, while continuing to oversee its always lively community discussions.