-->
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: cascade="all-delete-orphan" and one-to-one
PostPosted: Wed Aug 25, 2004 1:40 pm 
Beginner
Beginner

Joined: Sat Mar 13, 2004 4:00 pm
Posts: 32
I have a one-to-one mapping between two objects with cascade=all set on the parent object. When I delete the parent object, the child object is deleted; but if I de-reference the child object from the parent I don't see a delete of the child object. I read in the docs that to get this behavior I need to use "all-delete-orphan" but this is not allow (by the DTD) for one-to-one mappings. Is this expected behavior ?

Thanks in advance,

Rich

Hibernate version: 2.1.6
Mapping documents:
<one-to-one
name="floatTerms"
class="BondFloatTerms"
cascade="all"
access="field"
/>

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

Oracle

Debug level Hibernate log excerpt:


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.