Hibernate

From Javapedia

Jump to: navigation, search

Hibernate is an object-relational mapping (ORM) solution for the Java language: it provides an easy to use framework for mapping an object-oriented domain model to a traditional relational database. Its purpose is to relieve the developer from a significant amount of relational data persistence-related programming tasks.

Hibernate adapts to the developer's development process, whether starting from scratch or from an existing database.

Hibernate's primary feature is mapping from Java classes to database tables (and from Java data types to SQL data types) and also provides data query and retrieval facilities. 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, with database portability delivered at very little performance overhead.

Contents

[edit] Benefits of Hibernate

Relational databases are fast, consistent, and scalable. However, oftentimes mapping Java classes to database tables

Hibernate is an open source object/relational mapping tool for Java that lets you develop persistent classes and persistent logic without caring how to handle the data. 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. Hibernate's goal is to relieve the developer from 95% of common data persistence related programming tasks

  • Code is scattered at different un-manageable places.
  • If your design changes after developing the application,it will be too expensive to identify the places where changes are required.
  • Difficult to identify and fix the bugs
  • Managing the database connections is a difficult task since the SQL code is scattered,so are the database connections.
  • Managing the transactions is a complex task.


[edit] Examples

[edit] Reference Guides

[edit] See Also

[edit] Other ORM Tools

Personal tools