From 052886afeb7b0e4755d19131322bb0b1de9ff429 Mon Sep 17 00:00:00 2001 From: Brett Meyer Date: Mon, 1 Jul 2013 17:18:44 -0400 Subject: [PATCH] HHH-6935 Use bit type for MySQLDialect's boolean --- .../src/main/java/org/hibernate/dialect/MySQLDialect.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java index 801c7d1b9b..732c58f269 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java @@ -61,6 +61,7 @@ public class MySQLDialect extends Dialect { registerColumnType( Types.CHAR, "char(1)" ); registerColumnType( Types.FLOAT, "float" ); registerColumnType( Types.DOUBLE, "double precision" ); + registerColumnType( Types.BOOLEAN, "bit" ); // HHH-6935 registerColumnType( Types.DATE, "date" ); registerColumnType( Types.TIME, "time" ); registerColumnType( Types.TIMESTAMP, "datetime" );