Created
October 15, 2014 16:47
-
-
Save danieldbower/98eda95ff75038868ec7 to your computer and use it in GitHub Desktop.
InfinumMysqlDialect - Add Decimal to RegisterColumnType
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.infinum | |
import java.sql.Types | |
import org.hibernate.dialect.MySQL5Dialect | |
import org.hibernate.type.StandardBasicTypes | |
class InfinumMysqlDialect extends MySQL5Dialect { | |
InfinumMysqlDialect () { | |
super () | |
registerHibernateType(Types.DECIMAL, StandardBasicTypes.DOUBLE.name) | |
registerColumnType(Types.DECIMAL, StandardBasicTypes.DOUBLE.name) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment