Skip to content

Commit

Permalink
HHH-12768 - TimeAndTimestampTest fails with SQL Server and MYSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmihalcea committed Jul 11, 2018
1 parent 9035793 commit 97b77bc
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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 ));
} );
}
Expand Down

0 comments on commit 97b77bc

Please sign in to comment.