[JBoss-user] [EJB/JBoss] - Re: Inconsistencies of CMR collections

2004-08-27 Thread 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.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846452#3846452

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846452


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Inconsistencies of CMR collections

2004-08-26 Thread cvandyck
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.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846321#3846321

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846321


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user