cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/taxon/ITaxonDao.java -text
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/fetch/CdmFetch.java -text
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/hibernate/CdmHibernateInterceptor.java -text
+cdmlib-persistence/src/main/java/org/hibernate/dialect/H2CorrectedDialect.java -text
+cdmlib-persistence/src/main/java/org/hibernate/dialect/HSQLCorrectedDialect.java -text
cdmlib-persistence/src/main/java/org/hibernate/dialect/MySQL5InnoDBUtf8Dialect.java -text
cdmlib-persistence/src/main/java/org/hibernate/dialect/MySQL5MyISAMUtf8Dialect.java -text
cdmlib-persistence/src/main/resources/eu/etaxonomy/cdm/cdm.datasources.xml -text
private int defaultPort = 9092;\r
\r
//hibernate dialect\r
- private String hibernateDialect = "H2Dialect";\r
+ private String hibernateDialect = "H2CorrectedDialect";\r
\r
//init method\r
private String initMethod = "init";\r
private int defaultPort = 9001;\r
\r
//hibernate dialect\r
- private String hibernateDialect = "HSQLDialect";\r
+ private String hibernateDialect = "HSQLCorrectDialect";\r
\r
//init method\r
private String initMethod = "init";\r
--- /dev/null
+/**\r
+* Copyright (C) 2007 EDIT\r
+* European Distributed Institute of Taxonomy \r
+* http://www.e-taxonomy.eu\r
+* \r
+* The contents of this file are subject to the Mozilla Public License Version 1.1\r
+* See LICENSE.TXT at the top of this package for the full license terms.\r
+*/\r
+\r
+package org.hibernate.dialect;\r
+\r
+import java.sql.Types;\r
+\r
+import org.hibernate.dialect.H2Dialect;\r
+\r
+/**\r
+ * Extends H2Dialect and registers Types.BIT for boolean and Types.FLOAT as double.\r
+ * This is a work around for a known bug in the H2Dialect\r
+ * \r
+ * @see http://opensource.atlassian.com/projects/hibernate/browse/HHH-1598\r
+ * @author a.mueller\r
+ */\r
+public class H2CorrectedDialect extends H2Dialect {\r
+\r
+ public H2CorrectedDialect() {\r
+ super();\r
+ registerColumnType(Types.BIT, "boolean");\r
+ registerColumnType(Types.FLOAT, "double");\r
+ \r
+ \r
+ }\r
+\r
+ \r
+}
\ No newline at end of file
--- /dev/null
+/**\r
+* Copyright (C) 2007 EDIT\r
+* European Distributed Institute of Taxonomy \r
+* http://www.e-taxonomy.eu\r
+* \r
+* The contents of this file are subject to the Mozilla Public License Version 1.1\r
+* See LICENSE.TXT at the top of this package for the full license terms.\r
+*/\r
+\r
+package org.hibernate.dialect;\r
+\r
+import java.sql.Types;\r
+\r
+/**\r
+ * Extends H2Dialect and registers Types.BIT for boolean and Types.FLOAT as double.\r
+ * This is a work around for a known bug in the H2Dialect\r
+ * \r
+ * @see http://opensource.atlassian.com/projects/hibernate/browse/HHH-1598\r
+ * @author a.mueller\r
+ */\r
+public class HSQLCorrectedDialect extends HSQLDialect {\r
+\r
+ public HSQLCorrectedDialect() {\r
+ super();\r
+ registerColumnType(Types.BIT, "boolean");\r
+ registerColumnType(Types.FLOAT, "double");\r
+ \r
+ \r
+ }\r
+\r
+ \r
+}
\ No newline at end of file