Hello,
in my application i use the JPA EntityManager with Hibernate.
The PostgreSQL DB was used from other Applications with plain JDBC.
I have disabled the QueryCache and the SecondLevelCache but my application don't show the same content from the DB after a transaction outside of my application.
Does anyone now how i can disable the Session Caching?
Code:
<persistence-unit name="gpke" transaction-type="RESOURCE_LOCAL">
.
.
.
<properties>
<property name="hibernate.connection.driver_class" value="org.postgresql.Driver" />
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
<property name="hibernate.connection.url" value="jdbc:postgresql://lvappdb:5432/mydb" />
<property name="hibernate.connection.username" value="xxxx" />
<property name="hibernate.connection.password" value="xxxx" />
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="true" />
<property name="hibernate.generate_statistics" value="true" />
<property name="hibernate.cache.use_second_level_cache" value="false" />
<property name="hibernate.cache.use_query_cache" value="false" />
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.EhCacheProvider" />
<property name="hibernate.connection.provider_class" value="org.hibernate.connection.C3P0ConnectionProvider" />
<property name="c3p0.acquire_increment" value="3" />
<property name="c3p0.idle_test_period" value="300" />
<property name="c3p0.initialPoolSize" value="10" />
<property name="c3p0.min_size" value="5" />
<property name="c3p0.max_size" value="15"/>
<property name="c3p0.timeout" value="1800" />
</properties>
</persistence-unit>
Any advice will be welcome