mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-13663 adjust formatting style
This commit is contained in:
parent
26edb2863f
commit
1d64a386cd
@ -24,14 +24,14 @@ public class TestHibernateFlushModeOnThreadLocalInactiveTransaction extends Base
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void configure(Configuration configuration) {
|
protected void configure(Configuration configuration) {
|
||||||
configuration.setProperty(AvailableSettings.CURRENT_SESSION_CONTEXT_CLASS, "thread");
|
configuration.setProperty( AvailableSettings.CURRENT_SESSION_CONTEXT_CLASS, "thread" );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testHibernateFlushModeOnInactiveTransaction() {
|
public void testHibernateFlushModeOnInactiveTransaction() {
|
||||||
Session s = openSession();
|
Session s = openSession();
|
||||||
//s.setFlushMode(FlushMode.AUTO); // this does not throw (API is deprecated)
|
//s.setFlushMode(FlushMode.AUTO); // this does not throw (API is deprecated)
|
||||||
s.setHibernateFlushMode(FlushMode.AUTO); // this should not throw even within an inactive transaction
|
s.setHibernateFlushMode( FlushMode.AUTO ); // this should not throw even within an inactive transaction
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user