Skip to content

Commit

Permalink
HHH-10664 - Prep 5.2 feature branch
Browse files Browse the repository at this point in the history
  • Loading branch information
sebersole committed May 6, 2016
1 parent 69c8ef2 commit 8c91520
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions build.gradle
Expand Up @@ -146,8 +146,6 @@ subprojects { subProject ->
testRuntime( libraries.hsqldb )
testRuntime( libraries.postgresql )
testRuntime( libraries.mysql )
testRuntime( libraries.oracle )
testRuntime( libraries.mssql )
testRuntime( libraries.mariadb )
testRuntime( libraries.woodstox )

Expand Down
Expand Up @@ -22,7 +22,7 @@
import org.hibernate.engine.spi.CascadingActions;
import org.hibernate.engine.spi.EntityEntry;
import org.hibernate.engine.spi.EntityKey;
import org.hibernate.engine.spi.SessionImplementor;
import org.hibernate.engine.spi.SharedSessionContractImplementor;
import org.hibernate.event.spi.EventSource;
import org.hibernate.event.spi.RefreshEvent;
import org.hibernate.event.spi.RefreshEventListener;
Expand Down Expand Up @@ -157,7 +157,7 @@ public void onRefresh(RefreshEvent event, Map refreshedAlready) {
final SoftLock lock = cache.lockItem( source, ck, previousVersion );
source.getActionQueue().registerProcess( new AfterTransactionCompletionProcess() {
@Override
public void doAfterTransactionCompletion(boolean success, SessionImplementor session) {
public void doAfterTransactionCompletion(boolean success, SharedSessionContractImplementor session) {
cache.unlockItem( session, ck, lock );
}
} );
Expand Down Expand Up @@ -194,7 +194,7 @@ private void evictCachedCollections(Type[] types, Serializable id, EventSource s
throws HibernateException {
for ( Type type : types ) {
if ( type.isCollectionType() ) {
CollectionPersister collectionPersister = source.getFactory().getCollectionPersister( ( (CollectionType) type ).getRole() );
CollectionPersister collectionPersister = source.getFactory().getMetamodel().collectionPersister( ( (CollectionType) type ).getRole() );
if ( collectionPersister.hasCache() ) {
final CollectionRegionAccessStrategy cache = collectionPersister.getCacheAccessStrategy();
final Object ck = cache.generateCacheKey(
Expand All @@ -206,7 +206,7 @@ private void evictCachedCollections(Type[] types, Serializable id, EventSource s
final SoftLock lock = cache.lockItem( source, ck, null );
source.getActionQueue().registerProcess( new AfterTransactionCompletionProcess() {
@Override
public void doAfterTransactionCompletion(boolean success, SessionImplementor session) {
public void doAfterTransactionCompletion(boolean success, SharedSessionContractImplementor session) {
cache.unlockItem( session, ck, lock );
}
} );
Expand Down

0 comments on commit 8c91520

Please sign in to comment.