HHH-6247 - Log (warn) inability for EM to join transaction only when user explicitly asked for join

This commit is contained in:
Steve Ebersole 2011-05-23 11:59:47 -05:00
parent c88cdaff96
commit 4f1bee1727
1 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ public abstract class AbstractEntityManagerImpl implements HibernateEntityManage
protected void postInit() {
//register in Sync if needed
if ( PersistenceUnitTransactionType.JTA.equals( transactionType ) ) {
joinTransaction( true );
joinTransaction( false );
}
setDefaultProperties();
@ -1147,7 +1147,7 @@ public abstract class AbstractEntityManagerImpl implements HibernateEntityManage
if( !isOpen() ){
throw new IllegalStateException( "EntityManager is closed" );
}
joinTransaction( false );
joinTransaction( true );
}
public <T> T unwrap(Class<T> clazz) {