HHH-10327 : Unit test failures due to date/time precision mismatches
This commit is contained in:
parent
d8f57877f2
commit
a2026c3ad0
|
@ -55,7 +55,7 @@ public class TimePropertyTest extends BaseCoreFunctionalTestCase {
|
|||
|
||||
s = openSession();
|
||||
s.getTransaction().begin();
|
||||
final Query queryWithParameter = s.createQuery( "from TimePropertyTest$Entity where tAsDate=?" ).setParameter( 0, eOrig.tAsDate );
|
||||
final Query queryWithParameter = s.createQuery( "from TimePropertyTest$Entity where tAsDate=?" ).setParameter( 0, eGotten.tAsDate );
|
||||
final Entity eQueriedWithParameter = (Entity) queryWithParameter.uniqueResult();
|
||||
assertNotNull( eQueriedWithParameter );
|
||||
s.getTransaction().commit();
|
||||
|
@ -63,7 +63,7 @@ public class TimePropertyTest extends BaseCoreFunctionalTestCase {
|
|||
|
||||
s = openSession();
|
||||
s.getTransaction().begin();
|
||||
final Query query = s.createQuery( "from TimePropertyTest$Entity where tAsDate=?" ).setTime( 0, eOrig.tAsDate );
|
||||
final Query query = s.createQuery( "from TimePropertyTest$Entity where tAsDate=?" ).setTime( 0, eGotten.tAsDate );
|
||||
final Entity eQueried = (Entity) query.uniqueResult();
|
||||
assertNotNull( eQueried );
|
||||
s.getTransaction().commit();
|
||||
|
|
Loading…
Reference in New Issue