public class CustomDialect extends MySQL5Dialect { public CustomDialect() { super(); registerHibernateType(Types.DECIMAL, Hibernate.BIG_DECIMAL.getName()); registerHibernateType(Types.LONGVARCHAR,Hibernate.TEXT.getName()); } }