You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by bi...@zte.com.cn on 2003/07/25 04:26:21 UTC

答复: Integer fields not being populated

I think there is some problem in your java bean source file.




Andrew Clute <an...@OSN.state.oh.us>

2003-07-25 02:01
请答复 给 "OJB Users List"
 
        收件人:        <oj...@db.apache.org>
        抄送: 
        主题:  Integer fields not being populated


I have a simple class with a couple of strings and a couple of integers
(int), however, not matter how I try, when I restore the row, two of the
integer fields are never populated (they just return 0).

The first integer field (rowID) and the two String fields will populate, 
but
the irn and applicationType will not.

Any thoughts?



Here is the class description:
<class-descriptor
         class="com.cavaness.beer4all.businessobjects.GrantApplication"
         table="tbl_grant_applications"
   >
    <field-descriptor
         name="rowID"
         column="row_id"
         jdbc-type="INTEGER"
 
      />
 
      <field-descriptor
         name="grantApplicationGuid"
         column="grant_application_guid"
         jdbc-type="VARCHAR"
         primarykey="true"
      />
 
       <field-descriptor
         name="irn"
         column="district_irn"
         jdbc-type="INTEGER"
      />
 
      <field-descriptor
         name="applicantType"
         column="applicant_type"
         jdbc-type="INTEGER"
      />
 
       <field-descriptor
         name="grantGuid"
         column="grant_guid"
         jdbc-type="VARCHAR"
      />
 
 
  </class-descriptor>


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org