Hibernate is an open source O / R MAPPIMG framework that provides a solution for persistent data management based on JDBC, which is quite lightweight relative to EntityBean. Since Hibernate is based on JDBC, its database checking the ability is also extremely strong relative to CMP, and Hibernate itself provides HQL search statements. One of the simplest Hibernate Projects (not involving Struts, Tomcat, XDoclet, JBoss, etc.) must have several stuffs: 1. Hibernate Toolkit. 2. JDBC database connection driver. Take MySQL as an example, mysql-connection-java-3.1. × -bin.jar. 3. Profile. 1) Hibernate global profile, hibernate.properties or hibernate.cfg.xml.. The XML file is generally used. 2) Data O / R mapping profile, which is a detailed description of each record in the database, including Field, PrimaryKey, etc. * .hbm.xml, * Generally represented by the name of the Class mapped to this class record. ------------------------ There are several tools to be very easy to use when developing a hibernate. Profile. It feels that it is quite troublesome, but it is very provincial, the key is to avoid errors. 2. Hibernate Extens is used to automatically generate Pojo corresponding to those * .hbm.xml, which is the corresponding Class file based on the configuration files mapped in the object relationship. There is an HBM2JAVA tool in HibernateEx, which is used to generate the corresponding POJO Class according to some configuration files. There are also two stools, one is Class2HBM, with the first opposite, is based on the class to export the mapping file. There is also a DDL2HBM, which is based on the database to export the table structure and generate a mapping file and Pojo Class.