Java Hibernate

Hibernate is an open source software that provides object-relational mapping library for the java language by mapping an object-oriented domain model to a traditional relational database with the help of a framework.

Java Hibernate

Java Hibernate

     

Hibernate is an open source software that provides object-relational mapping library for the java language by mapping an object-oriented domain model to a traditional relational database with the help of a framework. Hibernate overcomes Object-Relational impedance mismatch problems by replacing direct persistence-related database accesses with high-level object handling functions. The latest version of Hibernate is 3.x  which includes new features like a new Interceptor/Callback architecture, user defined filters and JDK 5.0 Annotations. Hibernate 3 is also much similar to EJB 3.0 specification.

Key Features of Hibernate:

  • Hibernate maps the java classes to database tables.
  • Hibernate provides its own data query and retrieval facilities.
  • Hibernate relieves the developer from common data persistence related programming task, as compared to manually coding by using SQL and JDBC API.
  • Hibernate generates the SQL calls and relieves the developers from handling the result set manually as well as object conversion, that helps in keeping the application portable for all SQL databases.
  • Hibernate allows persistent transparency in case of Plain Old Java Objects.
  • Persistence class don't have a no-argument constructor not necessarily public.
  • Some applications must require proper attention on the behavior of equals() and hashCode() methods.
  • Standalone java applications and Java EE applications having servlets or EJB session beans both can use hibernate.

Application programming interface: Java package org.hibernate provides hibernate API.

org.hibernate.SessionFactory interface: This interface refers to the immutable and threadsafe object to create new Hibernate sessions. Only applications having single instance of the class that implements this interface are developed by using this interface.

org.hibernate.Session interface: This interface is used if any time of manipulation is required on database entities. It also performs other tasks like managing the persistence state (such as transient, persisted, detached) of the objects, fetching the persisted data from the database and also manages demarcation of the transaction.

To know more about hibernate click on the link: 

http:/www.roseindia.net/hibernate/index.shtml