6 hibernate overview, Hibernate projects, Hibernate annotations – HP Integrity NonStop J-Series User Manual

Page 151: Hibernate entitymanager, Hibernate annotations hibernate entitymanager, Chapter 6: hibernate overview

Advertising
background image

6 Hibernate Overview

Hibernate is an object-relational mapping (ORM) tool for Java environments that provides a
framework for mapping a data representation from an object model to a relational data model
with an SQL-based schema.

Hibernate provides configuration files to map Java classes with database tables, and to configure
database connectivity properties, such as the database URL, database credentials, connection
pooling configuration parameters, and so on. It also provides data query and retrieval facilities.

The NonStop system provides a platform comprising of JVM and a servlet container to run
applications that use Hibernate.

NOTE:

Any mention of Hibernate in this document implies association with Hibernate version

3.5.1. For information on Hibernate, see

http://www.hibernate.org

.

This chapter provides an overview of the following:

Hibernate projects certified for use on NonStop

Hibernate Applications on NonStop

Hibernate Projects

In addition to the Hibernate core framework, the JBoss community maintains other projects, such
as Hibernate EntityManager, Hibernate Annotations, Hibernate Shards, and so on. Among these
projects, only Hibernate EntityManager and Hibernate Annotations are presently certified for use
on the NonStop platform.

Hibernate Annotations

In Hibernate, the application metadata is commonly provided to the Java Virtual Machine (JVM)
through XML files. You can also use Annotations to provide the application metadata.

Annotations enable you to provide the metadata for the Object and Relational Table mapping by
including the metadata information in the Plain Old Java Objects (POJO) file along with the code.
This helps you to understand the table structure and POJO simultaneously during application
development. This also reduces the complexity of the application because you need not maintain
separate files for the metadata.

To leverage the above-mentioned features of Annotations in Hibernate, the Hibernate community
provides the Hibernate Annotations package.

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

NOTE:

The Annotation feature is supported in Java 5.0 and later versions.

Hibernate EntityManager

Java EE provides EJB3 specifications to standardize the basic APIs and the metadata required for
any object/relational persistence mechanism. The Hibernate community provides the Hibernate
EntityManager project, which implements the programming interfaces and lifecycle rules as defined
by the EJB3 persistence specifications.

The Hibernate EntityManager implements the following:

Standard Java Persistence management API

Standard Java Persistence Query Language

Hibernate Projects

151

Advertising
This manual is related to the following products: