mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-15 07:34:57 +00:00
HHH-6247 - Log (warn) inability for EM to join transaction only when user explicitly asked for join
This commit is contained in:
parent
c88cdaff96
commit
4f1bee1727
@ -167,7 +167,7 @@ public PersistenceUnitTransactionType getTransactionType() {
|
||||
protected void postInit() {
|
||||
//register in Sync if needed
|
||||
if ( PersistenceUnitTransactionType.JTA.equals( transactionType ) ) {
|
||||
joinTransaction( true );
|
||||
joinTransaction( false );
|
||||
}
|
||||
|
||||
setDefaultProperties();
|
||||
@ -1147,7 +1147,7 @@ public void joinTransaction() {
|
||||
if( !isOpen() ){
|
||||
throw new IllegalStateException( "EntityManager is closed" );
|
||||
}
|
||||
joinTransaction( false );
|
||||
joinTransaction( true );
|
||||
}
|
||||
|
||||
public <T> T unwrap(Class<T> clazz) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user