<!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="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@localhost:1521:inspur</property>
<property name="hibernate.connection.username">scott</property>
<property name="hibernate.connection.password">tiger</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
<mapping resource="com/inspur/po/Users.hbm.xml"/>
</session-factory>
</hibernate-configuration>
本文详细介绍了Hibernate配置文件的具体内容,包括数据库连接配置、方言设置及实体映射等关键信息。通过这些配置,Hibernate能够与Oracle数据库进行有效交互。
1855

被折叠的 条评论
为什么被折叠?



