MySQL Dialect and Numeric Problem

<property name=”hibernate.dialect” value=”com.pack.ABCDMySqlDialect”/>

Solution

http://opensource.atlassian.com/projects/hibernate/browse/HHH-2582

ABCDDialect.java

After this don’t zip the folder, jar them with jar tool.

package com.abcd;

import java.sql.Types;

import org.hibernate.dialect.MySQL5InnoDBDialect;

public class ABCDDialect extends MySQL5InnoDBDialect
{

public ABCDDialect()
{
super();
registerColumnType(Types.NUMERIC, “decimal($p,$s)”);
registerColumnType(Types.DECIMAL, “decimal($p,$s)”);

}
}

One thought on “MySQL Dialect and Numeric Problem

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.