Re: [Simple-support] How to abbreviate lists of objects
Brought to you by:
niallg
|
From: Niall G. - Y. <Nia...@yi...> - 2013-01-07 22:21:54
|
I am not sure what you are trying to do here. You can use the annotations to product any XML you like..
From: daniel echalar [mailto:da...@gm...]
Sent: Tuesday, 8 January 2013 6:21 AM
To: sim...@li...
Subject: [Simple-support] How to abbreviate lists of objects
Hi,
My business model is getting big, and the XML produced by simple is very large, for example, when I get a list of objects. I wondering if there is a way to get the list of objects with less elements, I mean, avoid the associations of the objects) and just get the primitive values, in order to get an small list.
Ex: //psedo definition
Person{
String name;
Person[] friends;
}
//generated xml:
<List>
<person name="Bill">
<person name="Hillary">
<person name="Kate">
</List>
Then, get the list of all persons, but every person comes only with the name.
And obtain the whole object (with associations )when I need an specific object.
<person name="Bill">
<friends>
<person name="Hillary">
.
.
<person name="N">
</friends>
</person>
Thanks in advance.
|