hibernate.cfg.xml 配置模板
2010-07-02 00:24
531 查看
<?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>
<!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配置文件模板(.cfg.xml)
- hibernate.cfg.xml配置文件和hbm.xml配置文件 模板
- hibernate.cfg.xml hibernate 配置文件模板
- Hibernate配置文件模板(.cfg.xml)
- hibernate.cfg.xml 配置模板
- hibernate.cfg.xml文件的配置模板和不同数据库的配置参数
- Hibernate配置文件模板(.cfg.xml)
- hibernate.cfg.xml文件的配置模板和不同数据库的配置參数
- hibernate两个配置模板(***.hbm.xml;***.cfg.xml)
- Hibernate.cfg.xml配置文件模板及解析
- Hibernate.cfg.xml配置文件模板及解析
- hibernate.cfg.xml中配置详解
- java使用hibernate访问mysql 如何配置hibernate.cfg.xml
- Hibernate3源码分析之hibernate.cfg.xml配置文件与SessionFactory类
- hibernate中连接SQLServer2008的配置文件hibernate.cfg.xml
- Hibernate.cfg.xml文件的配置
- hibernate.cfg.xml配置文件分析
- Spring对hibernate配置文件hibernate.cfg.xml的集成,来取代hibernate.cfg.xml的配置
- hibernate.cfg.xml配置oracle9i连接
- hibernate配置详情1(hibernate.cfg.xml)