Hi,
I would like to know how configure hibernate to update properly a collection list. I explain my simple case : I have 2 entities Journey and Segment. Entity Journey have a list of segment. But 2 Journey can share the same Segment, it's why i have a many to many. My problem is when i update Journey with a new list of Segment, Hibernate delete the entry of the link table but dont delete the segment useless. Why ?
Other question, if i have 2 Journey and i delete one of them , can i configure hibernate to just delete the segment linked ONLY with this journey ? Because if a segment is linked to an other journey i want to keep it ....
Thanks
|