mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-20 18:14:59 +00:00
HHH-12768 - TimeAndTimestampTest fails with SQL Server and MYSQL
This commit is contained in:
parent
9035793987
commit
97b77bcde3
@ -47,14 +47,14 @@ public void test() {
|
||||
doInHibernate( this::sessionFactory, session -> {
|
||||
Event event = new Event();
|
||||
event.id = 1L;
|
||||
event.timeValue = new Time( 12356 );
|
||||
event.timeValue = new Time( 1000 );
|
||||
event.timestampValue = new Timestamp( 45678 );
|
||||
|
||||
session.persist( event );
|
||||
} );
|
||||
doInHibernate( this::sessionFactory, session -> {
|
||||
Event event = session.find( Event.class, 1L );
|
||||
assertEquals(12356, event.timeValue.getTime() % TimeUnit.DAYS.toMillis( 1 ));
|
||||
assertEquals(1000, event.timeValue.getTime() % TimeUnit.DAYS.toMillis( 1 ));
|
||||
assertEquals(45678, event.timestampValue.getTime() % TimeUnit.DAYS.toMillis( 1 ));
|
||||
} );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user