Hello,
Having been digging around with one to many relationship, I have now hit a
problem. I have an XML Schema that I use to generate my java class source
code. I have attributes whithin the dependant objects to store a reference
to the parent object.
My mapping.xml file defines the many-key for the attribute in the dependant
object that will link to the parent object.
All this seemed to work fine, I could store and retrieve the object tree.
But when I restarted my server and hence created a new JDO instance with out
any cached records, I found that my dependant objects were no longer being
retrieved with their parent objects.
I looked into the database and found that no foreign key entries has been
saved for the dependant objects. So I looked at the auto generated code, and
found that this value was not set in the objects. I guess the values could
be set by castor when it goes to save the object tree, but this does not
seem to happen.
Is there any way to get castor to populate the dependant objects foreign key
when it is stored please?
Thanks
Neil
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev