Use of Hibernate With Java Persistence Api

Before we start any discussion about PersistenceApart from Hibernate, other popular open source
technologies, we need to understand whatJava persistence technologies include JDBC,
exactly Persistence is in computer science.abates, JDO, Top Link and CMP Entity Beans.
Persistence, in simple terms is the ability to retainThese technologies provide a standardized
data structures between various programobject-relational mapping mechanism.
executions. A perfect example of this would be aJava persistence application programming
word processor saving undo history. In practice,Interface or JAVA Persistence API is the latest
this is achieved by storing the data in non- volatileversion of the Java Data Objects (JDO)
storage such as a file system or a relationaltechnology which was the earlier persistent
database or an object database.technology used by developers. JPA or the Java
The popularity of databases has increasedPersistence API is the latest Java Specification
manifold in the past few years. Java has becomestandard for java enterprise applications. The Java
the preferred choice of developers for developingPersistence API is a java programming language
secure, flexible, and scalable database driven webframework that allows developers to manage
applications. These web applications requirerelational data in Java standard edition and
objects to be associated with appropriateEnterprise Edition applications. Java Persistence API
databases. Hibernate, along with other persistenceoriginated as part of the work of the JSR 220
technologies associate’s objects with theexpert group.
appropriate database in a simple, straight forwardThe java persistence API’s has been
and natural way.developed after drawing upon the best ideas
Hibernate is one such effort from the Javafrom other prevalent persistence technologies like
community to develop many object orientedTop link, JDO, Hibernate etc. In simple words, Java
solutions to data persistence. Any kind of JavaPersistence API is a Plain Old Java Object API for
persistence solution includes two main elements i.e.object /relational mapping and supports a rich,
ORM (Object Relational Mapping) and OOMSQL –like query language for both static and
(Object Oriented Modeling).dynamic queries.
Hibernate has become immensely popularVendors involved in application development have
amongst the developer community as it is a free,found that the use of Hibernate technology with
powerful, high performance open source object -Java persistence API’s helps build flexible,
relational mapping persistence Java package thatdatabase driven web applications that are highly
makes it easier to work with relational databasesscalable and involve complex business processes.
for Java Applications.