Skip to content

Commit

Permalink
Fix EntityManagerFactoryClosedTest
Browse files Browse the repository at this point in the history
  • Loading branch information
dreab8 authored and sebersole committed May 6, 2016
1 parent fd7ada3 commit d6a3fdb
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -544,6 +544,7 @@ public Session createEntityManager() {
}

private Session buildEntityManager(SynchronizationType synchronizationType, Map map) {
validateNotClosed();
SessionBuilderImplementor builder = withOptions();
if ( synchronizationType == SynchronizationType.SYNCHRONIZED ) {
builder.autoJoinTransactions( true );
Expand Down Expand Up @@ -594,6 +595,7 @@ public Session createEntityManager(SynchronizationType synchronizationType, Map

@Override
public CriteriaBuilder getCriteriaBuilder() {
validateNotClosed();
return criteriaBuilder;
}

Expand Down Expand Up @@ -739,6 +741,7 @@ public void close() throws HibernateException {
}

public CacheImplementor getCache() {
validateNotClosed();
return cacheAccess;
}

Expand Down

0 comments on commit d6a3fdb

Please sign in to comment.