including a collection into a parent element

23 views
Skip to first unread message

Mohamad Charaf

unread,
Jan 27, 2010, 2:54:02 PM1/27/10
to xmappr
Hello
I am mapping a collection through the code:
@Element(targetType=Conversation.class, name="Conversation")
private Set<Conversation> conversationsCollection;


which produces:
<Conversation>
<srcDestination>Anywhere2</srcDestination>
<srcApprovalStatus>APP</srcApprovalStatus>
</Conversation>
<Conversation>
<srcDestination>Anywhere</srcDestination>
<srcApprovalStatus>APP</srcApprovalStatus>
</Conversation>

Now I need to include those "Conversation" elements into a
"Conversations" element. I can't move this to a separate class as it
is a part of a JPA business objects. Is there a way to add this
"Conversations" through annotations or similar solution?
Thanks.

Peter Knego

unread,
Jan 27, 2010, 3:01:08 PM1/27/10
to xma...@googlegroups.com
Not at the moment - this is called non-uniform mapping and is on a to-do list: http://code.google.com/p/xmappr/issues/detail?id=11

Peter
Reply all
Reply to author
Forward
0 new messages