Hi all..
I am having a strange problem with my many-to-many association.
I have an object 'A' assocaited with object 'B' through object 'AB.'
AB has additional fields, so I have done the mapping as a composite element with a 'many-to-one' element within it.
The strange thing that I have noticed, however, is that when I load Object 'A' and do a trivial operation on the collection (say, for example, A.getB().size()) it works fine, but when the session commits, it deletes all of the associations, and re-inserts them. In fact, it deletes each of my association elements 1 by 1, and then reinserts them...
any ideas?
thanks,
joe
|