[hibernate-dev] About mapping of @IndexedEmbedded and @DocumentId

Emmanuel Bernard emmanuel at hibernate.org
Tue Mar 15 13:24:14 EDT 2011


On 15 mars 2011, at 16:43, Sanne Grinovero wrote:

> I guess we should prevent the indexing of ids in secondary elements?

If the associated element is an entity, it's perfectly valid to index its id and query by it

//return all books when the author's id is 2
"author.id:2"



More information about the hibernate-dev mailing list