diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/MySQL57InnoDBDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/MySQL57InnoDBDialect.java index 875bc6a68c..412b9d3c09 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/MySQL57InnoDBDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/MySQL57InnoDBDialect.java @@ -31,6 +31,11 @@ public class MySQL57InnoDBDialect extends MySQL5InnoDBDialect { // default). registerColumnType( Types.TIMESTAMP, "datetime(6)" ); + // MySQL 5.7 brings JSON native support with a dedicated datatype. + // For more details about MySql new JSON datatype support, see: + // https://dev.mysql.com/doc/refman/5.7/en/json.html + registerColumnType( Types.JAVA_OBJECT, "json" ); + // MySQL also supports fractional seconds precision for time values // (time(fsp)). According to SQL 1992, the default for