-->
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.  [ 3 posts ] 
Author Message
 Post subject: <many-to-one> cascade Problem in delete operation.
PostPosted: Tue Jul 20, 2004 2:58 am 
Beginner
Beginner

Joined: Thu Sep 04, 2003 2:52 am
Posts: 29
Hibernate version: 2.1.4

the parent class mapping file
---------------------
<class name="Element" table="tbl_element">
<id...>
</class>


the child class mapping file
-------------------------
<class name="Relation" table ="tbl_relation">
<many-to-one name="networkElement" class="Element" column="Network_ID" cascade="delete"/>
</class>

I use cascade="delete" to perform this operation: when element is deleted,then the relations are deleted too. but it does not work.Why!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 20, 2004 5:56 am 
Beginner
Beginner

Joined: Thu Sep 04, 2003 2:52 am
Posts: 29
Can anyone help me ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 20, 2004 6:11 am 
Regular
Regular

Joined: Tue Oct 28, 2003 8:25 am
Posts: 72
Location: Belgium
see http://www.hibernate.org/116.html#A14


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.