hey guys
I know my issue must sound ridiculous, but I am facing that same issue for quite some time now. I basically did all I could to avoid it. By all I could, I mean more or less hacks. Like special "did hib really save the changes" checks. I ridiculously often flush the session. But sometimes a property value is simply not written to the database. Not even delayed. And it mostly happens in heavy load production environment. Locally it doesnt happen at all. Also it occurs in unit tests from time to time... Totally random.
I am using the HibernateSupport classes from Spring, but I have a hard time believing that being related to the issue...
I'm clueless.
Anyone with an idea out there?
My Setup :
DB: Oracle 11g
Hib: 3.6
AppServer: Tomcat (5-7)
Spring 3.0.5
Conf:
Code:
<prop key="hibernate.dialect">com.mydomain.common.hibernate.FixedOracleDialect</prop>
<prop key="hibernate.hbm2ddl.auto">validate</prop>
<prop key="hibernate.show.sql">${testing}</prop>
<prop key="hibernate.current_session_context_class">thread</prop>
<prop key="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</prop>
<prop key="hibernate.generate_statistics">${testing}</prop>
<prop key="hibernate.cache.provider_class">com.mydomain.common.hibernate.ExternalEhCacheProvider</prop>
<prop key="hibernate.cache.use_query_cache">true</prop>
<prop key="hibernate.cache.region_prefix"></prop>
<prop key="hibernate.cache.use_second_level_cache">true</prop>
<prop key="hibernate.cache.use_structured_entries">true</prop>
<prop key="hibernate.bytecode.use_reflection_optimizer">true</prop>