Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsEntity.getChildList().add(childEntity) :child entity is not persisted.
https://www.eclipse.org/forums/index.php/mv/msg/200659/640487/#msg_640487
Hello
i am having a parent enity with the following relation with a child entity.
@OneToMany(mappedBy="studyTreatmentGrp", cascade={CascadeType.ALL}, fetch=FetchType.LAZY)
in the child entity the relationship is as follows
@ManyToOne(cascade={CascadeType.PERSIST,CascadeType.MERGE,Ca scadeType.REFRESH}) @JoinColumn(name="S_TREAT_GROUP_ID")
i am adding child entity to the existing collection using entity.getChildList().add(childEntity),
but some times the child entity is not getting persisted.]]>MITHUN 2010-11-22T10:13:04-00:00Re: Entity.getChildList().add(childEntity) :child entity is not persisted.
https://www.eclipse.org/forums/index.php/mv/msg/200659/640583/#msg_640583
]]>James Sutherland2010-11-22T14:39:12-00:00