This section contains the various aspects of Hibernate. Here we will read What is Hibernate, Features of Hibernate, Compatibility with the various databases, Hibernate dialect of various databases, Architecture of Hibernate, How to download hibernate, Hibernate Versions etc.
What is Hibernate ?
Hibernate is a persistence tool for Java (supported versions Java SE 5.0 and later, J2SE 1.4 and later) famous as an Object-Relational Mapping (ORM) framework for Java. Hibernate is provided by the JBoss organization and is distributed as an open source under GNU Lesser General Public License. Hibernate was started in 2001 and is created by Gavin King. Initially it was started with the goal to provide the use of entity beans in EJB2 style. But recently it focused on to providing a better persistence capabilities. Many of the improvements made in Hibernate's features as how the days passed. Hibernate Community time-to-time releases its new versions, each newer version contains the new feature than the older. Before releasing the Hibernate newer version as a final it releases the unstable versions that takes some fewer new features or it may be release for getting the feedback of its user. Generally Hibernate is called with its versions like Hibernate2, Hibernate3, Hibernate4 etc. Now Hibernate is also available for .NET (supported versions 1.1 and 2.0).
Features of Hibernate
Compatibility With The Various Databases
Hibernate supports various databases. Some of these are as follows :
Hibernate dialect of various databases
To use the different databases in hibernate there are corresponding dialects that should be used. The database and the corresponding dialects are tabled below :
|MySQL5 with InnoDB||org.hibernate.dialect.MySQL5InnoDBDialect|
|MySQL with MyISAM||org.hibernate.dialect.MySQLMyISAMDialect|
|Oracle (any version)||org.hibernate.dialect.OracleDialect|
|Microsoft SQL Server 2000||org.hibernate.dialect.SQLServerDialect|
|Microsoft SQL Server 2005||org.hibernate.dialect.SQLServer2005Dialect|
|Microsoft SQL Server 2008||org.hibernate.dialect.SQLServer2008Dialect|
Hibernate architecture is designed as that it acts as a mediator between the Java application and the database for providing persistence services. The developer has no need to interact with the database he/she is only concerned with the Java object that has to be persist. There are various of Java APIs that are used by the Hibernate these are JDBC, JTA (Java Transaction API), JNDI (Java Naming and Directory Interface). JDBC allows hibernate to interact with all most any database with the corresponding JDBC driver supported by it. Hibernate integrates with the J2EE application using JNDI and JTA.
How to download hibernate ?
To download the latest version of hibernate you can click here
As we have discussed earlier that Hibernate community releases the Hibernate's new versions time to time. Hibernate community makes the changes in the earlier versions to improve the functionality of Hibernate. In each of the hibernate version the organization added some new features by adding new classes, methods, etc and removes the classes, methods etc. those reported a bug or creates problem for the application. Following are the major versions release by the community :
Posted on: April 15, 2013 If you enjoyed this post then why not add us on Google+? Add us to your Circles