大时代

大时代--java

BlogJava 联系 聚合 管理
  0 Posts :: 6 Stories :: 0 Comments :: 0 Trackbacks
hibernate.cfg.xml配置

<!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="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
  <property name="hibernate.connection.url">jdbc:mysql://localhost/mydatabase</property>
  <property name="hibernate.connection.username">root</property>
  <property name="hibernate.connection.password">root</property>
  <property name="hibernate.hbm2ddl.auto">update</property>
  <property name="hibernate.current_session_context_class">thread</property> 
  <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> 
  
    
  <mapping class="com/bjsxt/test/model/User.hbm.xml"/>
 </session-factory>
</hibernate-configuration>

posted on 2012-04-18 20:10 NextAge 阅读(177) 评论(0)  编辑  收藏 所属分类: ssh部分基本设置