HHH-10664 - Prep 5.2 feature branch

This commit is contained in:
Steve Ebersole 2016-05-06 13:27:14 -05:00
parent 69c8ef29a8
commit 8c9152040c
2 changed files with 4 additions and 6 deletions

View File

@ -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 )

View File

@ -22,7 +22,7 @@ import org.hibernate.engine.internal.CascadePoint;
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;
@ -157,7 +157,7 @@ public class DefaultRefreshEventListener implements RefreshEventListener {
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 );
}
} );
@ -194,7 +194,7 @@ public class DefaultRefreshEventListener implements RefreshEventListener {
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(
@ -206,7 +206,7 @@ public class DefaultRefreshEventListener implements RefreshEventListener {
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 );
}
} );