-->
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: transitive persistence with composite-id
PostPosted: Fri Jan 05, 2007 9:22 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 anyone tell me what needs to be done to get this to work?

Thanks,
Gary


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 08, 2007 1:42 am 
Newbie

Joined: Tue Jun 20, 2006 11:51 am
Posts: 14
I'm still not having any luck with this. Does anyone know whether this is really possible as the book states?

Thanks,
Gary


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.