Merge pull request #1909 from ebean-orm/feature/mySqlJson

For MySql map @DbJson to mysql JSON db type
This commit is contained in:
Rob Bygrave
2020-01-10 23:59:18 +13:00
committed by GitHub
4 changed files with 24 additions and 22 deletions
@@ -65,6 +65,8 @@ public class MySqlPlatform extends DatabasePlatform {
dbTypeMap.put(DbType.BLOB, new MySqlBlob());
dbTypeMap.put(DbType.BINARY, new DbPlatformType("binary", 255));
dbTypeMap.put(DbType.VARBINARY, new DbPlatformType("varbinary", 255));
dbTypeMap.put(DbType.JSON, new DbPlatformType("json", false));
dbTypeMap.put(DbType.JSONB, new DbPlatformType("json", false));
}
@Override