persistence@glassfish.java.net

Re: Undo a change made to DerbyPlatform

From: Tom Ware <tom.ware_at_oracle.com>
Date: Thu, 23 Feb 2006 08:44:25 -0500

Sounds good to me.

Pramod Gopinath wrote:

>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
>
>

-- 
Tom Ware
Principal Software Engineer
Oracle Canada Inc.
Direct: (613) 783-4598
Email: tom.ware_at_oracle.com