Re: [hibernate-dev] Avoid need for bidirectional relations in Search

2011-12-07 Thread Emmanuel Bernard
Without the ORM info, we cannot guess that. Or more specifically we can guess a superset of that. Remember that you can have two (or more) unidirectional associations between two entity types. So we would need to reindex all Places where the Address is referenced in any of the associations. In m

Re: [hibernate-dev] Avoid need for bidirectional relations in Search

2011-12-07 Thread Hardy Ferentschik
On Dec 7, 2011, at 3:18 PM, Sanne Grinovero wrote: > nor if it's possible at all I guess the question is whether there is a generic way to find the entities which contain a certain entity. Maybe we could even do that via Lucene!? > but we aren't lazy right? Of course not ;-) Not saying that

Re: [hibernate-dev] Avoid need for bidirectional relations in Search

2011-12-07 Thread Sanne Grinovero
I'm not sure about estimating the effort, nor if it's possible at all, but we aren't lazy right? It seems to me it might be a useful feature; people expect us to know pretty well how the entities relate if that's defined, and I don't see why we should require to define relations redundantly on both

Re: [hibernate-dev] Avoid need for bidirectional relations in Search

2011-12-07 Thread Hardy Ferentschik
On Dec 7, 2011, at 3:03 PM, Sanne Grinovero wrote: > This sounds as an interesting idea, I'm wonderding if it could be doable: > > https://forum.hibernate.org/viewtopic.php?f=9&t=1013706 In the Place, Address example from the docs. If the relations is not bi-directional, how do you find the P

[hibernate-dev] Avoid need for bidirectional relations in Search

2011-12-07 Thread Sanne Grinovero
This sounds as an interesting idea, I'm wonderding if it could be doable: https://forum.hibernate.org/viewtopic.php?f=9&t=1013706 ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev