diff options
author | Henri Herscher <henri@oreka.org> | 2005-12-01 01:46:51 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2005-12-01 01:46:51 +0000 |
commit | 790cbf5035fa88a31f61134df055ee36e0b7788f (patch) | |
tree | b1d298fce3bd7a3e1bc393c431890fa31281ea70 /orkbasej/java/mysql.hbm.template.xml | |
parent | 42cfa120cc99dc20debb290fcc82ee58eaa39322 (diff) |
The HibernateManager is now a regular object instead of a bunch of static methods. Each app will now be creating its own HibernateManager (and therefore separate proxool connection pool)
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@80 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasej/java/mysql.hbm.template.xml')
-rw-r--r-- | orkbasej/java/mysql.hbm.template.xml | 35 |
1 files changed, 4 insertions, 31 deletions
diff --git a/orkbasej/java/mysql.hbm.template.xml b/orkbasej/java/mysql.hbm.template.xml index 99c911e..037e99f 100644 --- a/orkbasej/java/mysql.hbm.template.xml +++ b/orkbasej/java/mysql.hbm.template.xml @@ -7,40 +7,13 @@ <property name="hibernate.dialect">org.hibernate.dialect.MySQLMyISAMDialect</property> <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> <property name="hibernate.connection.url">jdbc:mysql://localhost/test</property> - <property name="hibernate.connection.password">mypassword</property> - <property name="hibernate.connection.username">root</property> - <property name="hibernate.connection.pool_size">1</property> + <property name="hibernate.connection.password">password</property> + <property name="hibernate.connection.username">root</property> - <property name="hibernate.hbm2ddl.auto">update</property> <!-- update, create, create-drop --> - <property name="hibernate.show_sql">true</property> + <!--<property name="hibernate.hbm2ddl.auto">update</property>--> <!-- update, create, create-drop --> + <property name="hibernate.show_sql">false</property> - <!-- Only use one of the three following connection pools (proxools, c3p0 or dbcp): --> - - <property name="hibernate.proxool.pool_alias">ork-pool</property> - <property name="hibernate.proxool.properties">proxool.properties</property> - - <!--<property name="c3p0.acquire_increment">1</property>--> - <!--<property name="c3p0.idle_test_period">100</property>--> <!-- seconds --> - <!--<property name="c3p0.max_size">100</property>--> - <!--<property name="c3p0.max_statements">0</property>--> - <!--<property name="c3p0.min_size">10</property>--> - <!--<property name="c3p0.timeout">100</property>--> <!-- seconds --> - - <!-- dbcp does not appear to work with Hibernate 3 --> - <!--<property name="hibernate.dbcp.ps.maxActive">100</property>--> - <!--<property name="hibernate.dbcp.maxActive">10</property>--> - <!--<property name="hibernate.dbcp.initialSize">2</property>--> - <!--<property name="hibernate.dbcp.maxWait">3000</property>--> - <!--<property name="hibernate.dbcp.validationQuery">select CURRENT_DATE</property>--> - - <property name="hibernate.jdbc.batch_versioned_data">true</property> - <property name="hibernate.query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> - <property name="hibernate.cache.region_prefix">hibernate.test</property> - <property name="hibernate.default_batch_fetch_size">8</property> - <property name="hibernate.jdbc.use_streams_for_binary">true</property> <property name="hibernate.max_fetch_depth">1</property> <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property> - <property name="hibernate.use_sql_comments">true</property> - <property name="hibernate.order_updates">true</property> </session-factory> </hibernate-configuration> |