These are chat archives for hibernate/hibernate-orm

22nd
Feb 2017
Iwan Aucamp
@aucampia
Feb 22 2017 14:41
hi
it seems like hibernate rounds java.util.Date objects to nearest second when used with MySQL
is there some way to change this behaviour ?
Iwan Aucamp
@aucampia
Feb 22 2017 22:25
ok the issue is actually not really related to hibernate - it happens at MySQL server side
so another thing - is there some way I can get Hibernate to truncate java.util.Date before sending it in query ?