champagnewq

Hibernate3配置文件hibernate.cfg.xml

<?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="myeclipse.connection.profile">thesis</property>
 <property name="connection.url">jdbc:jtds:sqlserver://localhost:1433;DatabaseName=thesis</property>
 <property name="connection.username">sa</property>
 <property name="connection.password">ecjtu</property>
 <property name="connection.driver_class">net.sourceforge.jtds.jdbc.Driver</property>
 <property name="dialect">org.hibernate.dialect.SQLServerDialect</property>
 <mapping resource="cn/jx/ecjtu/thesis/pojos/Assignment.hbm.xml" />
 <mapping resource="cn/jx/ecjtu/thesis/pojos/Clazz.hbm.xml" />
 <mapping resource="cn/jx/ecjtu/thesis/pojos/Major.hbm.xml" />
 <mapping resource="cn/jx/ecjtu/thesis/pojos/Researchlab.hbm.xml" />
 <mapping resource="cn/jx/ecjtu/thesis/pojos/Studassign.hbm.xml" />
 <mapping resource="cn/jx/ecjtu/thesis/pojos/Student.hbm.xml" />
 <mapping resource="cn/jx/ecjtu/thesis/pojos/Teacher.hbm.xml" />
 <mapping resource="cn/jx/ecjtu/thesis/pojos/Teachertitle.hbm.xml" />
 <mapping resource="cn/jx/ecjtu/thesis/pojos/Assigntype.hbm.xml" />


</session-factory>

</hibernate-configuration>

posted on 2006-05-15 15:41 champagne 阅读(303) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航: