Hi there,

is there a way to get object-IDs (for the "identity" attribute) automatically 
generated by Castor for XML (!) binding. I noticed the key-generator feature for JDO, 
but did not manage to get it working for marshalling to XML.

I am currently using the "identity & reference"-feature of Castor to manage the 
serialization of potential circular object-trees with multi-references. Therefore - as 
I have understood - we need to provide unique IDs for each object. By now, I create 
those IDs manually with the help of getId() and setId() methods for each of my 
serializable objects. But I believe that this can't be the preferred way!?!

If there is a more elegant way, I would appreciate any hints and helpful code samples 
(especially how to change the mapping file).

Thanks for your help in advance!
Armin

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

One click access to the Top Search Engines
http://www.exactsearchbar.com/mailcom

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to