Member Menu
 
 Monthly JBoss newsletter:
 
Hibernate Books
CaveatEmptor

Java Persistence with Hibernate

The Java Persistence API is the standard object/relational mapping and persistence management interface of the Java EE 5.0 platform. As part of the EJB 3.0 specification effort, it is supported by all major vendors of the Java industry.

Hibernate implements the Java Persistence object/relational mapping and persistence management interfaces with the Hibernate Annotations and Hibernate EntityManager modules, on top of the mature and powerful Hibernate Core.

The Hibernate modules can be stacked and combined as desired. You can use the Hibernate Java Persistence provider in any environment, Java SE 5.0 or Java EE 5.0. The Hibernate Java Persistence provider is fully certified and passes the Sun TCK.


Hibernate Annotations

Project Lead: Emmanuel Bernard
Latest release: 3.4.0 GA (Changelog) (Road Map)
Release date: 20.08.2008
Requirements: Hibernate Core 3.3.x, JDK 5.0

Hibernate, like all other object/relational mapping tools, requires metadata that governs the transformation of data from one representation to the other (and vice versa). As an option, you can now use JDK 5.0 annotations for object/relational mapping with Hibernate 3.2. You can use annotations in addition to or as a replacement of XML mapping metadata.

The Hibernate Annotations package includes:

  • Standardized Java Persistence and EJB 3.0 (JSR 220) object/relational mapping annotations
  • Hibernate-specific extension annotations for performance optimization and special mappings

You can use Hibernate extension annotations on top of standardized Java Persistence annotations to utilize all native Hibernate features.

Requirements: At a minimum, you need JDK 5.0 and Hibernate Core, but no application server or EJB 3.0 container. You can use Hibernate Core and Hibernate Annotations in any Java EE 5.0 or Java SE 5.0 environment.

If you are a new user, please follow this road map to get started with Hibernate Annotations.


Hibernate EntityManager

Project Lead: Emmanuel Bernard
Contributors: Bill Burke, Gavin King
Latest release: 3.4.0 GA (Changelog) (Road Map)
Release date: 20.08.2008
Requirements: Hibernate Core 3.3.x, Annotations 3.4.x

Hibernate EntityManager implements:

  • The standard Java Persistence management API
  • The standard Java Persistence Query Language
  • The standard Java Persistence object lifecycle rules
  • The standard Java Persistence configuration and packaging

Hibernate EntityManager wraps the powerful and mature Hibernate Core. You can fall back to Hibernate native APIs, native SQL, and native JDBC whenever necessary.

The Hibernate Java Persistence provider is the default persistence provider of the JBoss EJB 3.0 implementation and bundled with the JBoss Application Server.

Requirements: Together with Hibernate Annotations, Hibernate EntityManager can be used as a fully certified and standardized Java Persistence provider, inside any Java EE 5.0 application server and with any EJB 3.0 container. You can also use the Hibernate Java Persistence provider with JDK 5.0 standalone.

If you are a new user, please follow this road map to get started with Hibernate EntityManager.

© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]