Jump to content

Hibernate (framework)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Musp (talk | contribs) at 09:41, 19 February 2006 (removed link to Polish Wikipedia). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Hibernate is an Object-relational mapping (ORM) solution for the Java language. It is free, open source software that is distributed under the LGPL. Hibernate was developed by a team of Java software developers around the world led by Gavin King. It provides an easy to use framework for mapping an object-oriented domain model to a traditional relational database.

Hibernate not only takes care of the mapping from Java classes to database tables (and from Java data types to SQL data types), but also provides data query and retrieval facilities and can significantly reduce development time otherwise spent with manual data handling in SQL and JDBC.

Its goal is to relieve the developer from a significant amount of common data persistence-related programming tasks. Hibernate adapts to the developer's development process, whether starting from scratch or from a legacy database. Hibernate generates the SQL calls and relieves the developer from manual result set handling and object conversion, keeping the application portable to all SQL databases. Hibernate provides transparent persistence for "Plain Old Java Objects"; the only strict requirement for a persistent class is a no-argument constructor. (Proper behavior in some applications also requires special attention to the equals() and hashCode() methods.[1])

Hibernate is typically used both in standalone Java applications and in Java EE applications using servlets or EJB session beans.

JBoss Group later hired the lead Hibernate developers and worked with them in supporting Hibernate. This move brought Hibernate development under Java EE Specifications.

The current version of Hibernate is Version 3, which enriched the platform with new features like a new Interceptor/Callback architecture, user defined filters, and JDK 5.0 Annotations (Java's metadata feature). Hibernate 3 is also very close to the EJB 3.0 specification (although it was finished before the EJB 3.0 specification was released by the Java Community Process) and serves as the backbone for the EJB 3.0 implementation of JBoss.

References

  • Will Iverson: Hibernate: A J2EE™ Developer's Guide, Addison Wesley Professional, ISBN 0-321-26819-9
  • Christian Bauer, Gavin King: Hibernate in Action, Manning Publications Company, ISBN 1932394-15-X
  • James Elliott: Hibernate: A Developer's Notebook, O'Reilly, ISBN 0-596-00696-9

Ports

Tools

  • Linguine Maps - Visualization library for Hibernate mapping files