Just wondering if there is a way to make the <hibernatecfg> ant task create the config file with C3P0 statements, instead of the default hibernate connection pool?
Currently I have this ANT task:
Code:
<hibernatecfg
poolSize="3"
jdbcUrl="jdbc:oracle:thin:@oracle1:1521:oracle1"
transactionManagerLookup="net.sf.hibernate.transaction.JRun4TransactionManagerLookup"
driver="oracle.jdbc.driver.OracleDriver"
userName="abc"
password="xyz"
dialect="net.sf.hibernate.dialect.Oracle9Dialect"
showSql="true"
/>
Which creates the following hibernate.cfg.xml fragment:
Code:
<property name="dialect">net.sf.hibernate.dialect.Oracle9Dialect</property>
<property name="show_sql">true</property>
<property name="use_outer_join">false</property>
<property name="transaction.manager_lookup_class">net.sf.hibernate.transaction.JRun4TransactionManagerLookup</property>
<property name="connection.username">abc</property>
<property name="connection.password">xyz</property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="connection.url">jdbc:oracle:thin:@oracle1:1521:oracle1</property>
<property name="connection.pool_size">3</property>
Now I want to change it so that it uses the C3P0 pooling. Is there a way to do this? Or do I have to edit my hibernate.cfg.xml file by hand?
M.