persistence@glassfish.java.net

Issue 134 - _at_Column attributes are ignored during java2db

From: Pramod Gopinath <Pramod.Gopinath_at_Sun.COM>
Date: Tue, 10 Jan 2006 17:44:24 -0800

Hi King
   As part of trying to solve this issue found that in the
DefautTableGenerator.getFieldDefFromDBField() we create a new
FieldDefinition. This field definition object is the one used to create
the sql as part of the ddl generation. I have made some changes to this
method to ensue that we take into consideration the @Column annotation
details (if specified).

I am attaching the java file that has the changed
getFieldDefFromDBField() method. Currently am using the precision and
scale values only for java.math.BigDecimal fields and not sure if this
is correct.

Could U review this code for me.

Thanks
Pramod