-->
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: [Search] 4.1.3. Embedded and associated objects
PostPosted: Wed Dec 07, 2011 9:53 am 
Newbie

Joined: Wed Dec 07, 2011 5:27 am
Posts: 6
Quote:
Associated objects as well as embedded objects can be indexed as part of the root entity index. This is useful if you expect to search a given entity based on properties of associated objects.
...
you need to mark the other side of the bidirectional relationship with @ContainedIn.

but in theory Hibernate Search could update without the need to have bidirectional relationships. Isn't possible to use metadata/orm informations to find associated entities?

In Example 4.4 of Hibernate Search docs (http://docs.jboss.org/hibernate/stable/search/reference/en-US/html_single/#search-mapping-associated): If "Address" entity gets updated, HS could 'know' that there are "Places" wich also need a update, because they are annotated with IndexedEmbedded.

It would make things a lot easier. Currently we need to to make bidirectional relationships only because HS need them. In some circumstances its also not practical (even not possible) to make bidirectional relationships.

Sorry for asking theoretically things... I really like HS and don't want to dis. And I'm also pretty new in this and I'm just wondering myself...

Thanks for feedback.


Top
 Profile  
 
 Post subject: Re: [Search] 4.1.3. Embedded and associated objects
PostPosted: Wed Dec 07, 2011 10:25 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
nice idea! Not sure if it's always possible, but let's talk about it..

http://lists.jboss.org/pipermail/hibernate-dev/2011-December/007415.html

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


Top
 Profile  
 
 Post subject: Re: [Search] 4.1.3. Embedded and associated objects
PostPosted: Wed Dec 07, 2011 12:16 pm 
Newbie

Joined: Wed Dec 07, 2011 5:27 am
Posts: 6
Thank you for feedback. I hope for a solution. It would be very helpful.

regards
mm


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.