-->
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: transitive persistence with composite-id
PostPosted: Fri Jan 05, 2007 1:33 am 
Newbie

Joined: Tue Jun 20, 2006 11:51 am
Posts: 14
Referencing the following excerpt on pg 307 of JPWH:
Quote:
A disadvantage is the more complex code needed to manage the CategorizedItem entity instances to create and remove associations—they have to be saved and deleted independently, and you need some infrastructure in the CategorizedItem class, such as the composite identifier. However, you can enable transitive persistence with cascading options on the collections from Category and Item to CategorizedItem, as explained in chapter 12, section 12.1, “Transitive persistence.”


I've read Ch 12 and unsuccessfully attempted to enable transitive persistence from Category and Item to CategorizedItem using the downloaded CE code. Can you tell me what needs to be done to get this to work?

Thanks,
Gary


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 05, 2007 6:43 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Regular user forum, please.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 05, 2007 9:25 am 
Newbie

Joined: Tue Jun 20, 2006 11:51 am
Posts: 14
christian wrote:
Regular user forum, please.


http://forum.hibernate.org/viewtopic.php?p=2336192


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.