download URL
安装到Eclise
ctrl+n
![](https://p-blog.csdn.net/images/p_blog_csdn_net/salinone/EntryImages/20080922/1.jpg)
配置hibernate.cfg.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory name="sessionFactory">
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.password">htlib</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@localhost:1521:XXXX</property>
<property name="hibernate.connection.username">XXXX</property>
<property name="hibernate.default_catalog">XXXX</property>
<property name="hibernate.default_schema">XXXX</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle9iDialect</property>
</session-factory>
</hibernate-configuration>
配置Hibernate console configuration
![](https://p-blog.csdn.net/images/p_blog_csdn_net/salinone/EntryImages/20080922/2.jpg)
![](https://p-blog.csdn.net/images/p_blog_csdn_net/salinone/EntryImages/20080922/3.jpg)
配置hibernate.reveng.xml
************************************
配置hibernate code Generation configurations
![](https://p-blog.csdn.net/images/p_blog_csdn_net/salinone/EntryImages/20080922/4.jpg)
![](https://p-blog.csdn.net/images/p_blog_csdn_net/salinone/EntryImages/20080922/6.jpg)
![](https://p-blog.csdn.net/images/p_blog_csdn_net/salinone/EntryImages/20080922/5.jpg)
success ;