<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><hibernate-configuration>
<session-factory name="foo">
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="dialect">org.hibernate.dialect.OracleDialect</property>
<property name="show_sql">true</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@192.168.0.249:1521:xxproperty>
<property name="hibernate.connection.username">yjs</property>
<property name="hibernate.connection.password">wzhdxtx</property>
<property name="hibernate.c3p0.min_size">5</property>
<property name="hibernate.c3p0.max_size">20</property>
<property name="hibernate.c3p0.timeout">1800</property>
<property name="hibernate.c3p0.max_statements">100</property>
<property name="hibernate.c3p0.breakAfterAcquireFailure">true</property>
<property name="hibernate.jdbc.batch_versioned_data">true</property>
<property name="hibernate.jdbc.batch_size">50</property>
<property name="hibernate.jdbc.fetch_size">25</property>
</session-factory>
</hibernate-configuration>
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><hibernate-configuration>
<session-factory name="foo">
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="dialect">org.hibernate.dialect.OracleDialect</property>
<property name="show_sql">true</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@192.168.0.249:1521:xxproperty>
<property name="hibernate.connection.username">yjs</property>
<property name="hibernate.connection.password">wzhdxtx</property>
<property name="hibernate.c3p0.min_size">5</property>
<property name="hibernate.c3p0.max_size">20</property>
<property name="hibernate.c3p0.timeout">1800</property>
<property name="hibernate.c3p0.max_statements">100</property>
<property name="hibernate.c3p0.breakAfterAcquireFailure">true</property>
<property name="hibernate.jdbc.batch_versioned_data">true</property>
<property name="hibernate.jdbc.batch_size">50</property>
<property name="hibernate.jdbc.fetch_size">25</property>
</session-factory>
</hibernate-configuration>
解决方案 »
- spring 注入对象
- struts2-core 和commons-lang 这两个包的关系
- 谁能帮我解释关于线程安全的一句话
- org.hibernate.NonUniqueResultException
- wait和notify之间的多线程通信问题!
- 学习j2ee重要的是什么?
- websphere6.1 重新启动应用的问题?
- spring + tomcat5.59 + hibernate + JOTM 配置分布式事务的问题
- BMP把数据放到BEAN里面,我怎么样才能清空BEAN,再重新从数据库里提取数据??急
- 关于以前多个老的应用系统的整合,超难,寻求解决方案
- ||||||weblogic server8.1怎么没有7.0中的Tx Data Source选项,怎么找出来?|||||||
- 菜鸟xml问题,白送分了。 :)
仔细看看!
## JNDI Datasourcehibernate.connection.datasource java:/comp/env/jdbc/DataSource
hibernate.connection.username slacsj
hibernate.connection.password sla
hibernate.dialect org.hibernate.dialect.Oracle9Dialect
hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver
hibernate.connection.username slacsj
hibernate.connection.password sla
hibernate.connection.url jdbc:oracle:thin:@33soft.com:1521:sladb