Hi, 

I have ananother problem with types .
This time it's with Short.

I have an exception, when i want to create un record wich one field is number(5) map 
on Short 
Nested Error : java.lang.ClassCasException:java.lang.Short

=======================
In Oracle : fiel delai-traitement :  number(5)

mapping :
-------------
<field name="delaiTraitement" type="short">
        <sql name="delai_trt" type="smallint" dirty="ignore"/>
</field>


Class java : 
----------------
public class MSousMotif {
        private java.lang.String smid;
        private java.lang.Short delaiTraitement;
...
setter and getter....
}

create method : 
--------------------------
MSousMotif l_mSousMotif = new MSousMotif();
l_mSousMotif.setSmid(l_smid);
Short l_delaiTraitement = new Short("1"); 
l_mSousMotif.setDelaiTraitement(l_delaiTraitement);
database.create(l_mSousMotif);
=> this throws the next exception :
Nested Error : java.lang.ClassCasException:jva.lang.Short

Someone has an idea ??

Thanks a lot.

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to