In the current application development environments, Object-Oriented Programming is the main method, relational database systems is the main storage system. Does not match the two technologies,the object data to a relational database persistence, the need for Object Relational Mapping (Object Relation Mapping, referred to as the ORM). Hibernate framework is Object Relational Mapping tool. It is written using Java and open-source middleware. Made of lightweight package JDBC technology. Hibernate framework not only provides a mapping Java classes to database tables, Also provides data query and data acquisition methods.Using the Hibernate framework can significantly reduce manual developers write structured query language,Allowing developers to focus more on business logic rather than the details of the database.This paper studies the Hibernate object persistence technology, and a detailed description of Hibernate architecture, persistent class methods, Object Relational Mapping, operational data methods, and Hibernate query language. Finally, a news publishing system base on Hibernate is given. |