Toplink Jdev10g How To Delete Child Record

The problem :
Recently i've found problem when trying to delete the record with child record programmaticly using Toplink in Jdev10g.

For example imagine i'm about to delete IT Department in HR schema.

Here is my piece of code in SessionBean to do that :


And my embedded OC4J thrown me
Exception TOPLINK-4002 (Oracle TopLink - 10g Release 3 ( (Build 061214)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.BatchUpdateException: error occurred during batching: ORA-02292: integrity constraint (FK_CHILD_PARENT) violated - child record found

The solution :
There is nothing wrong with above code and maybe nothing wrong with your code too LOL. What i'm doing a little modification in TopLink Map Descriptor (tlMap1.mwp).
Tick Private Owned in each collection of Departments class (see screen shot).
Jdev10g Toplink Map Editor

My Environment :
*. XP SP2
*. JDev
*. Oracle Database 11g