Hi all. I hope I am not asking this question again, but I didnt find it in any archive or FAQ.
Here is the Problem: We are persisting different object-models with castor in different xml files. All of these models have a common meta-model that describes each model. Having this, we do not use mapping.xml files, but a set of XMLClassDescriptors and XMLFieldDescriptors that use the metamodel to write each model to an xml file. So far so good. Now we have the following problem: These models can have idrefs that refer to objects in other models. After searching the API I found an IDResolver. My idea was to write such an idresolver to resolve those external ids. Therefore I store the external ids as an combination of the objectid plus an identifier for the model that holds the object. So now my question: Is there an elegant way to load the dependant model into the Unmarshaller and tell the unmarshaller to now resolve the id? How Do I now more about the referred object besides the id? If I have to manually parse the referred model for the object only by knowing the objectid, this will be a lot of work and I guess that has been already done in the Unmarshaller. Any Ideas? Thanks in advance, Christian Domsch Anwendungsentwickler > Entire Software AG > Lise-Meitner-Stra�e 14 > D-89081 Ulm > > Tel: +49 7 31 9 74 95-4 83 > Fax: +49 7 31 9 74 95-20 > Mailto:[EMAIL PROTECTED] > > http://www.entire.de > > ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
