I already told you 2 times...

Originally Posted by
mdeinum
2) Don't use 'thread' as the current session mechanism, this overrides the spring one and screws up proper transaction management
3) Don't (re)configure your datasource inside the hibernate properties, you already have a datasource configured in your spring configuration.
Code:
<?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>
<property name="hibernate.dialect">org.hibernate.dialect.Ora cleDialect</property>
<property name="hibernate.connection.driver_class">oracle.jd bc.driver.OracleDriver</property>
<property name="hibernate.connection.url">___</property>
<property name="hibernate.connection.username">___</property>
<property name="hibernate.connection.password">___</property>
<property name="current_session_context_class">thread</property>
<property name="hibernate.connection.pool_size">1</property>
<property name="hibernate.c3p0.max_size">50</property>
<property name="hibernate.c3p0.min_size">2</property>
<property name="hibernate.c3p0.timeout">5000</property>
<property name="hibernate.c3p0.max_statements">100</property>
<property name="hibernate.c3p0.idle_test_period">3000</property>
<property name="hibernate.c3p0.acquire_increment">2</property>
<property name="hibernate.c3p0.validate">false</property>
<mapping class="xxx.PaditJiModel.City"/>
<mapping class="xxx.PaditJiModel.Country"/>
<mapping class="xxx.PaditJiModel.Person"/>
<mapping class="xxx.PaditJiModel.State"/>
</session-factory>
</hibernate-configuration>
Remove everything red and blue.