When creating a complete new Set of entities and storing that set using the entity's set method I thought that hibernate would pick up that fact that since this is a new set all other elements in the old set (db rows) will be deleted.
I.E. A document contains many text items
I want to be able to store text items for a
doc and have hibernate delete all old text items for that doc.
I.E.
Why is this not deleting the 10 old text items since I used a new set with just one item in it?
Is this a problem because the relationship is bi-directional.