-->
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.  [ 2 posts ] 
Author Message
 Post subject: Help : deleting row in db by using hibernate
PostPosted: Mon Sep 15, 2008 7:50 am 
Newbie

Joined: Tue Aug 12, 2008 7:08 am
Posts: 8
Hi everyone,

can any body how to do the following senario by using hibernate

The database schema has
parent-child relationships. So if a record in parent is deleted,
not only the record of the parent should
be deleted, even the child record should be deletd.


Any help would be appreciated.

Thanks,


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 15, 2008 8:08 am 
Beginner
Beginner

Joined: Fri Feb 10, 2006 8:33 am
Posts: 32
try this : cascade="all-delete-orphan"


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

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.