Joined: Tue Jun 10, 2008 12:39 pm Posts: 14
|
Hi,
I want to create a .hbm.xml file for many-to-many link table
because whenever there is some deletion of the row in the link table
the child tables of the link table must also cascade the delete.
eg:
Tables A And B have many-to-many relation.
The link table is A_B;this link table has a child table A_B_child;
now whenever arow is deleted in the link table A_B i should cascade it in A_B_child.
the link table has got two foreign keys from table A and table B.
can u please explain me how to create a .hbm file for link table and use cascade to its childs.
can u please respond quickly.
Babu
|
|