New in MySQL 5.6 is support for fractional seconds. Hibernate should have a new dialect to support this:
public class ImprovedMySQL56Dialect extends MySQL5InnoDBDialect { public ImprovedMySQL56Dialect() { super(); // http://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html registerColumnType( Types.TIMESTAMP, "datetime(6)" ); } }
This will most likely also fix HHH-3822.