<? 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 = "cache.provider_class" >org.hibernate.cache.EhCacheProvider</ property > |
<!-- |
<property name="hibernate.cache.use_query_cache">true</property> |
--> |
< property name = "show_sql" >true</ property > |
< property name = "current_session_context_class" >thread</ property > |
< property name = "dialect" >org.hibernate.dialect.MySQLDialect</ property > |
< property name = "connection.url" >jdbc:mysql://localhost:3306/book</ property > |
< property name = "connection.username" >******</ property > |
< property name = "connection.password" >******</ property > |
< property name = "connection.driver_class" >com.mysql.jdbc.Driver</ property > |
< mapping resource = "com/sunflower/entity/Student.hbm.xml" /> |
</ session-factory > |
</ hibernate-configuration > |