-->
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.  [ 4 posts ] 
Author Message
 Post subject: How to update an index when a "bridged" attribute changes
PostPosted: Thu Apr 05, 2012 5:43 am 
Newbie

Joined: Thu Dec 14, 2006 6:42 am
Posts: 15
I know that if I use @IndexEmbedded on the parent and @ContainedIn on the child, when the child is modified the index is updated automatically.

If I don't use @IndexEmbedded but use a @FieldBridge instead, that creates a "fake" field with the value of the child, the automatic index update doesn't seem to work anymore (see my previous post for the use case).

Is there a way around this?

Thank you.


Top
 Profile  
 
 Post subject: Re: How to update an index when a "bridged" attribute changes
PostPosted: Sat Apr 07, 2012 11:25 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Could you use a @ClassBridge on the embedded type ?

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: How to update an index when a "bridged" attribute changes
PostPosted: Sat Apr 07, 2012 3:18 pm 
Newbie

Joined: Thu Dec 14, 2006 6:42 am
Posts: 15
I guess I could. Would I get the automatic index update then?
Would I use a @IndexedEmbedded on the parent entity?


Top
 Profile  
 
 Post subject: Re: How to update an index when a "bridged" attribute changes
PostPosted: Thu Apr 11, 2013 12:05 pm 
Newbie

Joined: Thu Apr 11, 2013 12:02 pm
Posts: 1
xtian wrote:
I guess I could. Would I get the automatic index update then?
Would I use a @IndexedEmbedded on the parent entity?


Hello.
Have you found any way to achive your requirements? (I have the same problem currently).


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.