Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Help Java H Java Hibernate

Related Tutorials


 
 

Share on Google+Share on Google+

Java Hibernate

Advertisement
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

     

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

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: April 3, 2006

Related Tutorials

Discuss: Java Hibernate  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com