-->
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: Question regarding documentation (one shot delete)
PostPosted: Wed Feb 23, 2005 11:15 am 
Newbie

Joined: Wed Jan 05, 2005 8:20 pm
Posts: 10
Referencing the current version of the Hibernate 3 documentation, 18.5.4, One Shot Delete.

http://www.hibernate.org/hib_docs/v3/reference/en/html/performance.html

The statement, " Of course, one-shot-delete does not apply to collections mapped inverse="true"" is included.

Can I get more explanation regarding why inverse="true" affects the one shot delete capability?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 25, 2005 9:58 am 
Newbie

Joined: Wed Jan 05, 2005 8:20 pm
Posts: 10
If inverse="true" is set on a collection, Hibernate will not perform a one-shot delete. I would expect that cascade="delete-orphan" would trump this restriction. Is this a possible optimization for future releases, or is there something I am not considering? It seems that setting delete-orphan is tying the lifecycle of the child persistent class to its parent even if it is shared with other entities.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 26, 2005 10:53 am 
Newbie

Joined: Wed Jan 05, 2005 8:20 pm
Posts: 10
In addition to a bit more explanation, can someone let me know if this "restriction" still exists in Hibernate 3?

Thank you.


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.