Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » JPA mapping problem. Multiple values
JPA mapping problem. Multiple values [message #955264] Tue, 23 October 2012 12:58
Mark Jones is currently offline 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
Previous Topic:Problems using the @ClassExtractor annotation
Next Topic:XmlReadTransformer only for a read-only mapping
Goto Forum:
  


Current Time: Fri Jul 25 05:14:23 EDT 2014

Powered by FUDForum. Page generated in 0.01660 seconds