-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: *** hbm file for link table ***
PostPosted: Tue Aug 26, 2008 5:44 am 
Newbie

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.