Hibernate 1

What's Hibernate? and What is the function of Hibernate?

Working with object-oriented software and a relational database can be cumbersome and time consuming in today's enterprise environments. Hibernate is an Object/Relational Mapping tool for Java environments. The term Object/Relational Mapping (ORM) refers to the technique of mapping a data representation from an object model to a relational data model with a SQL-based schema.

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. It can also significantly reduce development time otherwise spent with manual data handling in SQL and JDBC.

Hibernate's goal is to relieve the developer from 95 percent of common data persistence related programming tasks. Hibernate may not be the best solution for data-centric applications that only use stored-procedures to implement the business logic in the database, it is most useful with object-oriented domain models and business logic in the Java-based middle-tier. However, Hibernate can certainly help you to remove or encapsulate vendor-specific SQL code and will help with the common task of result set translation from a tabular representation to a graph of objects.

说白了hibernate就是对数据库中数据的封装(以类的形式存在),上层的应用程序在使用时直接可以和hibernate交互,从而隔离了数据库,便于项目管理。

Hibernate Document :

http://docs.jboss.org/hibernate/core/3.3/reference/en/html/

posted @ 2010-06-14 16:37  qiang.xu  阅读(138)  评论(0编辑  收藏  举报