persistence@glassfish.java.net

Undo a change made to DerbyPlatform

From: Pramod Gopinath <Pramod.Gopinath_at_Sun.COM>
Date: Wed, 22 Feb 2006 19:01:38 -0800

Hi Tom
  I need to undo a change that I had made last week to DerbyPlatform. I
had moved the buildFieldTypes() from DB2Platform into DerbyPlatform as
part of the bug fix to deal with the max value of Long fields. During
this exercise I also defined a size of 38 to the DECIMAL fields. This
does not work in Derby as we cannot define a DECIMAL(38) type of field.
I need to undo these 2 lines to the old value. The change affects these
2 lines

        fieldTypeMapping.put(java.math.BigDecimal.class, new
FieldTypeDefinition("DECIMAL(38)", false));
        fieldTypeMapping.put(Number.class, new
FieldTypeDefinition("DECIMAL(38)", false));

These should read :
        fieldTypeMapping.put(java.math.BigDecimal.class, new
FieldTypeDefinition("DECIMAL", false));
        fieldTypeMapping.put(Number.class, new
FieldTypeDefinition("DECIMAL", false));

Wanted to run this by you.

Thanks
Pramod