Hi,
 
I have the folowing problem:
I'm using Oracle 8i and Castor 0.9.3
 
What is the recommended way of mapping a java.lasng.Short to an Oracle db
 
e.g. i have one column in the db specified as LOCKED NUMBER(2).
 
 
 
i tried the followeing mapping:
<field name="locked" type="short">
      <sql name="locked" type="numeric"  />
      <xml node="text" />
</field>
 
which results in an error:
>Nested error: org.exolab.castor.mapping.MappingException: No convertor exists for converting type java.math.BigDecimal to type java.lang.Short
 
The next mapping results in an ClassCastException: java.lang.Short
 
<field name="locked" type="short">
      <sql name="locked" type="smallint"  />
      <xml node="text" />
</field>
 
If I convert all my attributes to Integer it works fine (but I really don't want to do that).
 
Thanks in Advance,
 
julian
 
 
 

 

Reply via email to