[Simple-support] How to abbreviate lists of objects
Brought to you by:
niallg
|
From: daniel e. <da...@gm...> - 2013-01-07 19:22:01
|
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.
|