[hibernate-dev] why are embedded ids indexed?

Sanne Grinovero sanne at hibernate.org
Mon Jun 6 05:29:23 EDT 2011


Hi,

2011/6/6 Emmanuel Bernard <emmanuel at 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?

> 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?

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 at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>
>



More information about the hibernate-dev mailing list