Hi All, We have defined our entities using an XSD file and we are running Castor SourceGenerator on the same to generate our source code. Castor JDO is being used to persist the objects into our datastore.
For many-many relationship objects that are contained inside another object, the sourceGenerator typically creates code as: public class OuterObject { ArrayList InnerObject = null; // for -types j2 or Vector for -types j1 public InnerObject[] getInnerObject { // here convert the innerobject arraylist/vector into an array // and return the array. } } The JDO mapping is as follows: <class name="outerobject . . . outer objects fields here... . . . <field name="InnerObject" type="InnerObject" required="true" transient="false" direct="false" collection="array" lazy="false"> <sql name="outerID" many-table="maptable" many-key="innerID" dirty="check" /> </field> </class> Error: org.exolab.castor.mapping.MappingException: The return type for method public InnerObject[] OuterObject.getInnerObject() does not match the declared field type java.lang.Object Can anyone throw any light on this? Regards C.P.Krishnan ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev