On 6 juin 2011, at 11:29, Sanne Grinovero wrote: > Hi, > > 2011/6/6 Emmanuel Bernard <emman...@hibernate.org>: >> Because somehow we need people to be able to index the id of embedded >> objects. > > But why, we don't ever use it right? Is the purpose to make it > possible for people to include restrictions on the ids when creating > queries?
yes > >> And at the time, I decided that automatically indexing them was harmless. >> Either we stay as is or we add a specific annotation to ask for id indexing >> in embedded objects > > Wouldn't @Field work for such purpose? > Not entirely as it would index the id twice when the @Indexed @Entity is top level > Sanne > >> >> Emmanuel >> >> On 3 juin 2011, at 14:42, Sanne Grinovero wrote: >> >>> About this post: >>> https://forum.hibernate.org/viewtopic.php?f=9&t=1011255 >>> >>> I remember this came up before, but I don't remember if we had >>> identified a good reason for why we're storing the ids for >>> @IndexedEmbedded objects? >>> >>> Cheers, >>> Sanne >>> _______________________________________________ >>> hibernate-dev mailing list >>> hibernate-dev@lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/hibernate-dev >> >> _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev