sorry i missed the point about the mapkey.
On 08/09/18 10:26, Matthew Broadhead wrote:
If it is set to cascade then this should work?
MapKeyParent parent = new MapKeyParent();
parent.setChildren(new ArrayList<>());
MapKeyChild child = new MapKeyChild();
child.setParent(parent);
parent.getChildre
If it is set to cascade then this should work?
MapKeyParent parent = new MapKeyParent();
parent.setChildren(new ArrayList<>());
MapKeyChild child = new MapKeyChild();
child.setParent(parent);
parent.getChildren().add(child);
em.persist(parent);
em.flush();
On 08/09/18 02:42, Pawel Veselov wrote:
Hello.
I ran into this problem, and I'm not sure what the right answer is.
Consider just two entities (I've gutted them to the pieces that are
relevant, I tried this on corresponding classes in
org.apache.openjpa.persistence.relations package,
openjpa-persistence-jdbc module):
public class MapKey