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"  >
< 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 >

你可能感兴趣的:(sql,Hibernate,xml,jdbc,Microsoft)