-->
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: Synchronising indexed property to the child property
PostPosted: Tue Jan 18, 2011 8:49 am 
Newbie

Joined: Fri Feb 05, 2010 1:05 am
Posts: 12
Hi experts,
I got a question about synchronising indexed property to the child property.
Say there's an object A , having a list collection B. So B got a index property, which is managed by hibernate, right?

Then B is the parent of an object C.
For some reason, we need the index property of B to also be stored in a property of C.
So my question is, is there any mapping in the configuration I can do to achieve this result?

Since the index is managed by hibernate, I have found that the index value is only set/updated at DB-access time and is not available in the persistent object before really saved to DB, which is not good even I try to copy the property directly in code. Not to mention cases that elements in the collection got deleted and the index changed.

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: Synchronising indexed property to the child property
PostPosted: Wed Jan 19, 2011 1:32 am 
Newbie

Joined: Fri Feb 05, 2010 1:05 am
Posts: 12
bump...


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.