hibernate tools的使用
來源:互聯網
上載者:User
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 configurationssuccess ;