<?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-configuration>
<session-factory>
<property name="connection.username">scott</property>
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:myoradb</property>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="myeclipse.connection.profile">oracle</property>
<property name="connection.password">tiger</property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="show_sql">true</property>
<mapping resource="com/pojos/Emplooyes.hbm.xml" />
<mapping resource="com/pojos/Departments.hbm.xml" />
<mapping resource="com/pojos/Attendance.hbm.xml" />
<mapping resource="com/pojos/Roles.hbm.xml" />
<mapping resource="com/pojos/Menus.hbm.xml" />
<mapping resource="com/pojos/Ctypes.hbm.xml" />
<mapping resource="com/pojos/Messages.hbm.xml" />
<mapping resource="com/pojos/Conlist.hbm.xml" />
<mapping resource="com/pojos/Myschedule.hbm.xml" />
<mapping resource="com/pojos/Notetype.hbm.xml" />
<mapping resource="com/pojos/Notes.hbm.xml" />
</session-factory>
</hibernate-configuration>
本文详细介绍了Hibernate框架的配置文件设置,包括数据库连接参数、使用的方言、显示SQL语句开关及多个实体映射文件路径。适用于Oracle数据库环境,展示了如何通过Hibernate进行持久化层的配置。
161

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



