MySQL Dialect and Numeric Problem

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


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()
registerColumnType(Types.NUMERIC, “decimal($p,$s)”);
registerColumnType(Types.DECIMAL, “decimal($p,$s)”);



One thought on “MySQL Dialect and Numeric Problem

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s