Hi Erdinc,
In one of our projects, we needed to output populated dataobjects from
Cayenne to some XML streams for our webservices... We used the
Opensource Castor project from Exolab (http://www.castor.org).
Thanks to Castor, marshalling dataobjects to XML was very easy!
And also, to prevent Castor from invoking the
getToArrays()/getToParent() methods used for relationships, you can use
a custom mapping file that indicates which fields Castor should retrieve
or not (it can access fields through getters() or direct access to class
attributes...)
Check the Castor XML framework at
http://www.castor.org/xml-framework.html for some examples.
Regards
Julien Vignali
Erdinc Kocaman wrote:
> Hi all,
>
>
>
> I want to serialize cayenne dataobjects using xml. What is the best way
> of doing this? I need to export only class properties, not
> relationships. I think cayenne doesnot have builtin support for this.
>
>
>
> Thanks,
>
>
>
>
>
>
>
>
>
This archive was generated by hypermail 2.0.0 : Mon Feb 14 2005 - 05:46:44 EST