Hi David,
I'm sorry, here's an example:
This is from the source database:
SQL> desc imihs_commitment_doc_t
Name Null? Type
----------------------------------------- -------- ----------------------------
FDOC_NBR NOT NULL VARCHAR2(36 CHAR)
FDOC_EXPLAIN_TXT VARCHAR2(1600 CHAR)
CATEGORY VARCHAR2(160 CHAR)
PRIMARY_RECIPIENT VARCHAR2(160 CHAR)
PRIMARY_DEPARTMENT VARCHAR2(160 CHAR)
SECONDARY_RECIPIENT VARCHAR2(160 CHAR)
SECONDARY_DEPARTMENT VARCHAR2(160 CHAR)
TOTAL_AMT NUMBER(19,2)
Middlegen generates the following:
<id
name="fdocNbr"
type="java.lang.String"
column="FDOC_NBR"
>
<generator class="assigned" />
</id>
<property
name="fdocExplainTxt"
type="java.lang.String"
column="FDOC_EXPLAIN_TXT"
length="4000"
/>
<property
name="category"
type="java.lang.String"
column="CATEGORY"
length="640"
/>
<property
name="primaryRecipient"
type="java.lang.String"
column="PRIMARY_RECIPIENT"
length="640"
/>
<property
name="primaryDepartment"
type="java.lang.String"
column="PRIMARY_DEPARTMENT"
length="640"
/>
<property
name="secondaryRecipient"
type="java.lang.String"
column="SECONDARY_RECIPIENT"
length="640"
/>
<property
name="secondaryDepartment"
type="java.lang.String"
column="SECONDARY_DEPARTMENT"
length="640"
/>
<property
name="totalAmt"
type="java.math.BigDecimal"
column="TOTAL_AMT"
length="19"
/>
The reason why I think might have something to do with the jdbc metadata is because my sql client (DbVisualizer) reports the same wrong values!
Thanks,
Peter
|