"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
" http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!--oracle-->
<property name="connection.autocommit">true</property>
<property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<!--根据自己的系统自行设置-->
<property name="hibernate.connection.username">system</property>
<property name="hibernate.connection.password">fendou</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@localhost:1521:orcl</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="hibernate.show_sql">true</property>
<!--mysql-->
<!-- <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>-->
<!-- <property name="hibernate.connection.driver_class">org.gjt.mm.mysql.Driver</property>-->
<!-- <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/hibernate</property>-->
<!-- <property name="hibernate.connection.username">root</property>-->
<!-- <property name="hibernate.connection.password">fendou</property>-->
<!-- <property name="hibernate.show_sql">true</property>-->
<!-- <property name="hibernate.format_sql">true</property>-->
<!-- <property name="hibernate.hbm2ddl.auto">update</property>-->
<mapping resource="com/fendou/archive/po/User.hbm.xml"/>
</session-factory>
</hibernate-configuration>