<?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>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:EWAY</property>
<property name="connection.username">zdf</property>
<property name="connection.password">pass</property>
<!--SQL dialect 方言 -->
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property>
<property name="show_sql">true</property> <!--展示sql -->
<property name="hbm2ddl.auto">update</property> <!--自动生成数据库 create -->
<mapping resource="com/ssh/hibernate/Student.hbm.xml" />
</session-factory>
</hibernate-configuration>