My application is using hibernate 3.6.10 and database is db2. Isolation level is default i.e 2 (Read Uncommitted). if i initiate a transaction to insert/update in table, i can't read data from that table until the transaction is committed. All i want is that hibernate let me read the data.
I ran the select query on that table in db visualizer during the transaction it returned the records during transaction. Also the default release mode is after_transaction. I tried to change it to auto by adding following property:
auto
but it didn't work. below is my hibernate.cfg.xml
<property name="hibernate.connection.driver_class">
com.ibm.db2.jcc.DB2Driver
</property>
<property name="hibernate.connection.url">
jdbc:db2://ip/dbname
</property>
<property name="hibernate.default_schema">dbname</property>
<property name="hibernate.connection.username">user</property>
<property name="hibernate.c3p0.max_size">24</property>
<property name="hibernate.c3p0.min_size">7</property>
<property name="hibernate.c3p0.acquire_increment">2</property>
<property name="hibernate.connection.release_mode">auto</property>
<property name="dialect">org.hibernate.dialect.DB2Dialect</property>
<property name="show_sql">false</property>
<property
name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
<property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
<property name="hibernate.cache.use_second_level_cache">false</property>
<property name="hibernate.cache.use_query_cache">false</property>