On Thu, Nov 5, 2009 at 4:29 PM, Oscar Rodriguez <[email protected]> wrote: > Hi, sorry if this list is not the correct place to ask this, but when I want > to update a collection (insert or remove an item) hibernate first remove all > items from database and then insert the items in the collection, I don't > understand why.
Depends on how you update that collection. If you're replacing the List/Set/etc. with a new List/Set/etc. it doesn't have much choice. If you take the one with which your object was populated and call .add(), .remove(), etc on it there's a chance it can be smarter. -Dale --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
