HHH-13663 adjust formatting style
This commit is contained in:
parent
26edb2863f
commit
1d64a386cd
|
@ -21,17 +21,17 @@ import org.junit.Test;
|
||||||
*/
|
*/
|
||||||
@TestForIssue(jiraKey = "HHH-13663")
|
@TestForIssue(jiraKey = "HHH-13663")
|
||||||
public class TestHibernateFlushModeOnThreadLocalInactiveTransaction extends BaseCoreFunctionalTestCase {
|
public class TestHibernateFlushModeOnThreadLocalInactiveTransaction extends BaseCoreFunctionalTestCase {
|
||||||
|
|
||||||
@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…
Reference in New Issue