-->
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: CategorizedItem Pojo: Linking in transient state
PostPosted: Fri Dec 21, 2007 7:03 am 
Newbie

Joined: Fri Jul 20, 2007 4:32 am
Posts: 4
This is a question about the Listing 7.1 in JPH (Revised Edition, 2007), page. 304.

The issue has been raised in this form at:http://forum.hibernate.org/viewtopic.php?t=968009&highlight=categorizeditem

As pointed out in that post, the CategorizedItem Pojo with its embedded Id is not suited for use where linking may occur between transient Categories/Items.

Christian writes:

Quote:
The pattern gets more complex if you require linking in transient state.


Has anyone got that pattern?

The "collection of components" pattern that follows doesn't work for me because I need bi-directional navigation (frequently, from both sides, so I'm not keen on the using a query in lieu of the bi-directional navigation).

I'm busy trying to work it out myself, but it would be very helpful to know if there is any tried-and-tested approach.

Thanks

Richard


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.