HHH-10664 - Prep 6.0 feature branch - merge hibernate-entitymanager into hibernate-core (misc)
This commit is contained in:
parent
614d406e8c
commit
4ad242799a
|
@ -435,8 +435,8 @@ public final class SessionFactoryImpl implements SessionFactoryImplementor {
|
|||
public Session openTemporarySession() throws HibernateException {
|
||||
return withOptions()
|
||||
.autoClose( false )
|
||||
.flushBeforeCompletion( false )
|
||||
.connectionReleaseMode( ConnectionReleaseMode.AFTER_STATEMENT )
|
||||
.flushMode( FlushMode.MANUAL )
|
||||
.connectionHandlingMode( PhysicalConnectionHandlingMode.DELAYED_ACQUISITION_AND_RELEASE_AFTER_STATEMENT )
|
||||
.openSession();
|
||||
}
|
||||
|
||||
|
|
|
@ -201,7 +201,7 @@ public class EntityManagerFactoryBuilderImpl implements EntityManagerFactoryBuil
|
|||
metamodelBuilder.getMetadataBuildingOptions()
|
||||
);
|
||||
|
||||
withValidatorFactory( configurationValues.get( AvailableSettings.VALIDATION_FACTORY ) );
|
||||
withValidatorFactory( configurationValues.get( org.hibernate.cfg.AvailableSettings.JPA_VALIDATION_FACTORY ) );
|
||||
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// push back class transformation to the environment; for the time being this only has any effect in EE
|
||||
|
|
Loading…
Reference in New Issue