I have these entities
class Foo{ Set bars; } class Bar{ Foo parent; String localIdentifier; }
With this mapping (sorry,
If you want to avoid flushing the session here, try to replace the whole list (new List() instead of Clear()). Hibernate should actually remove all the items in one shot before adding new. Just a try, not sure if it works.
new List()
Clear()