Hi,
I have a many to many relationship between Items and Tags. So I created a join table Item_Tag. I don't have an intermediate association class.
To add a tag to item I am doing:
Code:
item.getTags().add(tag);
Let us assume that this item already has 5 tags and a 6th one is being added. When I save the item, Hibernate is issuing an update on item table, a update on each of the 5 existing tags and one insert for the new tag.
How do I tell Hibernate not to bother about updating the existing 5 tags. Just insert the new tag.
Thank you very much,