<?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">
<!-- Generated by MyEclipse Hibernate Tools. -->
<!-- 以上几行所有的hibernate.cfg.xml都相同 -->
<hibernate-configuration>
<session-factory>
<!-- 连接数据库的用户名 -->
<property name="connection.username">system</property>
<!-- 指定连接数据库的URL以及要连接的数据库 -->
<property name="connection.url">
jdbc:oracle:thin:@localhost:1521:college
</property>
<!-- 指定连接的数据库类型 -->
<property name="dialect">
org.hibernate.dialect.Oracle9Dialect
</property>
<property name="myeclipse.connection.profile">Oracle</property>
<!-- 指定连接数据库的密码 -->
<property name="connection.password">password</property>
<!-- 指定连接数据库的驱动 -->
<property name="connection.driver_class">
oracle.jdbc.driver.OracleDriver
</property>
</session-factory>
</hibernate-configuration>