hibernate配置文件

http://sahchem.iteye.com/blog/446521
# <?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>   
#       <!-- 设置隔离层次,控制事务的并发,缺省时Read Committed:2 -->   
#       <property name="connection.isolation">2</property>   
#         
#       <!-- 配置事务实现类 -->   
#       <property name="transaction.factory_class">   
# org.hibernate.transaction.JDBCTransactionFactory   
#       </property>   
#         
#       <!-- 配置JDBC里Batch的大小 -->   
#       <property name="jdbc.batch_size">50</property>   
#       <property name="cache.use_second_level_cache">false</property>   
#         
#       <!-- 配置线程安全的Session -->   
#       <property name="current_session_context_class">thread</property>   
#         
#       <!-- 显示SQL -->   
#       <property name="show_sql">true</property>   
#       <property name="format_sql">true</property>   
#         
#       <!-- 配置数据库方言 -->   
#       <property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>   
#         
#       <!-- 配置数据库连接 -->   
#       <property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>   
#       <property name="connection.username">username</property>   
#       <property name="connection.password">password</property>   
#       <property name="connection.url">jdbc:oracle:thin:@127.0.0.1:1521:XE</property>   
#        
#       <!-- 配置连接池 -->   
#       <property name="c3p0.max_size">2</property>   
#       <property name="c3p0.min_size">2</property>   
#       <property name="c3p0.timeout">5000</property>   
#       <property name="c3p0.max_statements">100</property>   
#       <property name="c3p0.idle_test_period">3000</property>   
#       <property name="c3p0.acquire_increment">2</property>   
#       <property name="c3p0.validate">false</property>   
#         
#       <!-- 指定hibernate管理的映射文件 -->   
#       <mapping resource="com/hibernate/m2m/StudentCourse.hbm.xml"/>   
#     </session-factory>   
# </hibernate-configuration>
 

你可能感兴趣的:(oracle,sql,Hibernate,jdbc,配置管理)