随笔-124  评论-49  文章-56  trackbacks-0
<?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" >
<hibernate-configuration>
  
<session-factory>
      
<property name="connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property>
      
<property name="connection.url">jdbc:sqlserver://localhost:1433;DatabaseName=epai</property>
      
<property name="connection.username">sa</property>
      
<property name="connection.password">accp</property>
      
<property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
      
<property name="hibernate.show_sql">true</property>
      
<property name="hibernate.hbm2ddl.auto">update</property>
      
<property name="hibernate.current_session_context_class">thread</property>
      
    
<!-- 
        <property name="hibernate.current_session_context_class">jta</property>
     
-->
      
      
<mapping resource="org/epai/entity/Users.hbm.xml"/>
      
<mapping resource="org/epai/entity/Goods.hbm.xml"/>
      
<mapping resource="org/epai/entity/Bid.hbm.xml"/>
  
</session-factory>
</hibernate-configuration>
posted on 2009-11-03 17:56 junly 阅读(222) 评论(0)  编辑  收藏 所属分类: hibernate/orm

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


网站导航: