This content has been marked as final.
Show 2 replies
-
1. Re: Inconsistencies of CMR collections
cvandyck Aug 26, 2004 12:03 PM (in response to cyxs)How are you deleting the associations? If your entity container configuration specifies commit option A, then deleting the associations from outside the container (using an SQL query) would cause this behavior.
However, if you are iterating through each person entity and setting the associations that way...for (Iterator persons = personHome.findAll().iterator(); persons.hasNext();) { Person p = (Person)persons.next(); p.setHouses(new ArrayList()); }
Then the container should reflect the disassociation. -
2. Re: Inconsistencies of CMR collections
cyxs Aug 27, 2004 10:20 AM (in response to cyxs)I ahave used an iterator and remove() and also the removeAll() method. The finder method simply doesnt get it. seems like the removing takes place after the method finishes. but before the method finishes, the finder method is called.
I am using commit B option and also no transactions. Very weired.