现在的位置: 首页 > 综合 > 正文

hibernate tools的使用

2013年09月05日 ⁄ 综合 ⁄ 共 1022字 ⁄ 字号 评论关闭
download URL
安装到Eclise 
ctrl+n 
配置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
配置hibernate.reveng.xml
************************************
配置hibernate code Generation configurations
success ;

抱歉!评论已关闭.