beautypg.com

Key features of hibernate, Hibernate projects, Key features of hibernate hibernate projects – HP Integrity NonStop H-Series User Manual

Page 295

background image

5.

The Hibernate layer processes the request and performs the business validation. It also
performs the database operations (create, update, retrieve, and delete) and passes the
instruction to the JDBC layer.

6.

JDBC establishes the database connection with the NonStop SQL/MX database for retrieval
or manipulation of data. NonStop SQL/MX retrieves the data from the data repository.

7.

The response/data received from the database is forwarded by the Hibernate application
back to the NSJSP and iTP WebServer, to be displayed to the user.

NOTE:

Because JDBC Type 2 is a dynamic-link library (DLL), it is loaded as a part of the

Hibernate application process. However, when the JDBC Type 4 driver is used, the JDBC process
runs as a separate process external to the Hibernate application process.

Key Features of Hibernate

The key features offered by Hibernate are as follows:

Persistence

Hibernate distinguishes between the Transient objects and the Persistent objects. Hibernate
performs change detection using snapshot comparisons by creating runtime proxies for
persistent objects through dynamic byte code generation. This change detection mechanism
neither adds performance overhead nor does it require modification of the persistent objects
to observe their state.

Hibernate Query Language

Hibernate uses Hibernate Query Language (HQL) to directly retrieve persistent objects from
the database. This automates the process of creating objects and populating them with data
retrieved from the database.

HQL is available with the Hibernate Object/Relational Mapping framework that allows
different types of mappings, such as Multiple-Objects to Single-Row Mapping, Polymorphic
Associations, and Bi-directional Associations. These mappings are defined in the Hibernate
XML mapping files (

.hbm

files).

Caching

The Hibernate dual-layer cache architecture (HDLCA) supports features such as non-blocking
data access, session level cache, optional and pluggable second-level cache, optional query
cache, and thread safeness.

Hibernate also works well when other applications have simultaneous access to the database.
Hibernate supports pluggable cache strategies, providing out-of-the-box implementations
for EHCache, OSCache, SwarmCache, and JBoss TreeCache.

Optimized Performance

Hibernate features such as lazy initiation, outer join fetching, batch fetching, and optimistic
locking optimizes the performance of all hibernate-enabled applications.

Simplified Java EE Integration

Hibernate can easily integrate with Java Enterprise Edition (JEE) architecture, such as Spring,
Struts, and Java EE application servers, including JBoss Application Server through the Java
EE Connector Architecture (JCA) and Java Management Extensions (JMX).

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.

Key Features of Hibernate

295

This manual is related to the following products: