Author: steve.ebersole(a)jboss.com
Date: 2007-03-29 15:36:33 -0400 (Thu, 29 Mar 2007)
New Revision: 11375
Modified:
branches/Branch_3_2/Hibernate3/src/org/hibernate/action/BulkOperationCleanupAction.java
Log:
HHH-2532 : BulkOperationCleanupAction#afterTransactionCompletion && JBC
Modified:
branches/Branch_3_2/Hibernate3/src/org/hibernate/action/BulkOperationCleanupAction.java
===================================================================
---
branches/Branch_3_2/Hibernate3/src/org/hibernate/action/BulkOperationCleanupAction.java 2007-03-29
19:09:18 UTC (rev 11374)
+++
branches/Branch_3_2/Hibernate3/src/org/hibernate/action/BulkOperationCleanupAction.java 2007-03-29
19:36:33 UTC (rev 11375)
@@ -2,14 +2,12 @@
package org.hibernate.action;
import org.hibernate.HibernateException;
-import org.hibernate.metadata.ClassMetadata;
import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.persister.entity.Queryable;
import org.hibernate.engine.SessionFactoryImplementor;
import org.hibernate.engine.SessionImplementor;
import java.io.Serializable;
-import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Iterator;
@@ -108,6 +106,13 @@
}
public void afterTransactionCompletion(boolean success) throws HibernateException {
+ ///////////////////////////////////////////////////////////////////////
+ // HACK ALERT!!!!!
+ if ( session.getFactory().getSettings().getCacheProvider() instanceof
org.hibernate.cache.OptimisticTreeCacheProvider
+ || session.getFactory().getSettings().getCacheProvider() instanceof
org.hibernate.cache.TreeCacheProvider ) {
+ return;
+ }
+ ///////////////////////////////////////////////////////////////////////
evictEntityRegions();
evictCollectionRegions();
}
Show replies by date