| JPA mapping problem. Multiple values [message #955264] |
Tue, 23 October 2012 12:58 |
Mark Jones Messages: 5 Registered: October 2012 |
Junior Member |
|
|
Hi I am stuck trying to map this entity to the following structure.
class Top {
private Set<Child> children = new HashSet<Child>(0);
}
class Child {
private String attribute;
private String valueOne;
private String valueTwo;
}
<top>
<childOne attribute="foo">valueOne</childOne>
<childTwo attribute="foo">valueTwo</childTwo>
</top>
XmlValue is not able to appear twice on an element and none of the approaches I have tried have worked. If anyone could give me a pointer that would be great.
Regards
|
|
|
Powered by
FUDForum. Page generated in 0.02020 seconds