HHH-5275 - Criteria.setLockMode does not work correctly
This commit is contained in:
parent
ea5cf961e1
commit
ccc087b975
|
@ -71,7 +71,7 @@ public class LockModeTest extends BaseCoreFunctionalTestCase {
|
||||||
session.close();
|
session.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test( timeout = 6000 )
|
||||||
@SuppressWarnings( {"deprecation"})
|
@SuppressWarnings( {"deprecation"})
|
||||||
public void testLoading() {
|
public void testLoading() {
|
||||||
// open a session, begin a transaction and lock row
|
// open a session, begin a transaction and lock row
|
||||||
|
@ -92,7 +92,7 @@ public class LockModeTest extends BaseCoreFunctionalTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test( timeout = 6000 )
|
||||||
@FailureExpected( jiraKey = "HHH-5275" )
|
@FailureExpected( jiraKey = "HHH-5275" )
|
||||||
public void testLegacyCriteria() {
|
public void testLegacyCriteria() {
|
||||||
// open a session, begin a transaction and lock row
|
// open a session, begin a transaction and lock row
|
||||||
|
@ -115,7 +115,7 @@ public class LockModeTest extends BaseCoreFunctionalTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test( timeout = 6000 )
|
||||||
@FailureExpected( jiraKey = "HHH-5275" )
|
@FailureExpected( jiraKey = "HHH-5275" )
|
||||||
public void testLegacyCriteriaAliasSpecific() {
|
public void testLegacyCriteriaAliasSpecific() {
|
||||||
// open a session, begin a transaction and lock row
|
// open a session, begin a transaction and lock row
|
||||||
|
@ -138,7 +138,7 @@ public class LockModeTest extends BaseCoreFunctionalTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test( timeout = 6000 )
|
||||||
@FailureExpected( jiraKey = "HHH-5275" )
|
@FailureExpected( jiraKey = "HHH-5275" )
|
||||||
public void testQuery() {
|
public void testQuery() {
|
||||||
// open a session, begin a transaction and lock row
|
// open a session, begin a transaction and lock row
|
||||||
|
@ -161,7 +161,7 @@ public class LockModeTest extends BaseCoreFunctionalTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test( timeout = 6000 )
|
||||||
public void testQueryUsingLockOptions() {
|
public void testQueryUsingLockOptions() {
|
||||||
// todo : need an association here to make sure the alias-specific lock modes are applied correctly
|
// todo : need an association here to make sure the alias-specific lock modes are applied correctly
|
||||||
Session s1 = sessionFactory().openSession();
|
Session s1 = sessionFactory().openSession();
|
||||||
|
|
Loading…
Reference in New Issue