It turns out that the root cause is MySQL doesn’t adhere to SQL standard that default TIMESTAMP type’s fractional second precision should be 6 (to maintain backward compatibility). See https://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html In your specific case, if you specify precision explicitly, the bug should disappear. However, this seems still a bug of Hibernate in terms of MySQL dialect issue. I’ll think about how to fix it later soon. Thanks for your report! |