mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 00:55:16 +00:00
HHH-11542 - Allow the auto-commit resolution to be configurable for RESOURCE_LOCAL transactions (default methods)
This commit is contained in:
parent
db528238d8
commit
97942914c8
@ -666,7 +666,9 @@ SessionFactoryBuilder applyEntityTuplizer(
|
||||
/**
|
||||
* @see org.hibernate.cfg.AvailableSettings#CONNECTION_PROVIDER_DISABLES_AUTOCOMMIT
|
||||
*/
|
||||
SessionFactoryBuilder applyConnectionProviderDisablesAutoCommit(boolean providerDisablesAutoCommit);
|
||||
default SessionFactoryBuilder applyConnectionProviderDisablesAutoCommit(boolean providerDisablesAutoCommit) {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Should Hibernate apply comments to SQL it generates?
|
||||
|
@ -181,7 +181,9 @@ default boolean isAllowRefreshDetachedEntity() {
|
||||
|
||||
PhysicalConnectionHandlingMode getPhysicalConnectionHandlingMode();
|
||||
|
||||
boolean doesConnectionProviderDisableAutoCommit();
|
||||
default boolean doesConnectionProviderDisableAutoCommit() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #getPhysicalConnectionHandlingMode()} instead
|
||||
|
Loading…
x
Reference in New Issue
Block a user