Skip to content

Instantly share code, notes, and snippets.

@danieldbower
Created October 15, 2014 16:47
Show Gist options
  • Save danieldbower/98eda95ff75038868ec7 to your computer and use it in GitHub Desktop.
Save danieldbower/98eda95ff75038868ec7 to your computer and use it in GitHub Desktop.
InfinumMysqlDialect - Add Decimal to RegisterColumnType
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