Hi!
I got the following exception, when I try to read my mapping file:
org.exolab.castor.mapping.MappingException: The return type for method
public at.openforce.opa.dao.EffortType[]
at.openforce.opa.dao.ProjectType.getEffort() does not match the declared
field type [Ljava.lang.Object;
at org.exolab.castor.persist.FieldMolder.findAccessor(FieldMolder.java:778)
at org.exolab.castor.persist.FieldMolder.<init>(FieldMolder.java:562)
at org.exolab.castor.persist.ClassMolder.<init>(ClassMolder.java:367)
at org.exolab.castor.persist.ClassMolder.resolve(ClassMolder.java:519)
at org.exolab.castor.persist.LockEngine.<init>(LockEngine.java:168)
at
org.exolab.castor.persist.PersistenceEngineFactory.createEngine(PersistenceE
ngineFactory.java:83)
at
org.exolab.castor.jdo.engine.DatabaseRegistry.<init>(DatabaseRegistry.java:2
04)
at
org.exolab.castor.jdo.engine.DatabaseRegistry.<init>(DatabaseRegistry.java:1
63)
at
org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistry.
java:289)
at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:559)
at JdoTest.main(Unknown Source)
My mapping.xml
<class name="at.openforce.opa.dao.ProjectType" identity="id" access="shared"
key-generator="SEQUENCE">
.....
<field name="Effort" type="at.openforce.opa.dao.EffortType"
collection="array">
<sql many-key="projectid"/>
</field>
.....
</class>
All my classes were generated with -type j2 option.
There is a 1:n relation between project (1) and effort (n).
What I am confused of is the "type [Ljava.lang.Object"
I've used version 0.9.3.9 of castor.
I hope someone can help me out...
Regards,
Gerhard
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev