Hi , I has made a mapping file using MappingTool.
 
I have the follow property int my class..
 
....
int type;
...
setType( int type ) {
    this.type= type;
}
...
getType() {
    return this.type;
}
....
 
 
Castor 0.9.3.19 has generated in mapping file:
 
        <field cst:name="type" cst:type="int">
            <bind-xml name="type" node="attribute"/>
        </field>
 
 
at the moment to unmarshall /marshall ,, castor said:
 
org.exolab.castor.mapping.MappingException: Could not find the class int
 at com.cpqd.promus.ebpp.persistence.metamodel.DAO.CastorPersistence.persist(CastorPersistence.java:267)
 at com.cpqd.promus.ebpp.persistence.metamodel.DAO.CastorPersistence.persist(CastorPersistence.java:279)
 at com.cpqd.promus.ebpp.test.persistence.metamodel.DAO.CastorPersistenceTest.testStoragePersistence(CastorPersistenceTest.java:240)
 
 
?? Why castor has puted "int" in mapping file if its not know about int ?
Or .. where is my error ?
 
Thanks...
 
Romilson Cruz de Carvalho
email: [EMAIL PROTECTED]
Desenvolvimento de sistemas
CPqD Telecom & IT Solutions
(19) 3705-6521
Campinas-SP / Brasil
 

Reply via email to