Although I searched throughout this Forum I haven't found a solution for this problem.
I have 1:M CMR between Person and Addresses ejbs. Tables are PERSON(PersID,attributes) and ADDRESS(AddrID,PersID,attributes) where PersID is NOT NULL foreign key referencing PERSON(PersID). When I want to remove all Person's addresses (without removing person itself) I have the following code:
Collection addresses=persLocal.getAddresses();//CMR for(Iterator i=addresses.iterator();i.hasNext();) { i.next(); i.remove(); }