I am not 100% certain mueller's use case is right as the query could probably be
rewritten backward to eliminate the "flatenization" due to the denormalization.
But you were saying that you could have used such feature and I was wondering about it.
yes I mean isFieldEnabled(value, entity, field). It seems less intrusive to me than a
dynamic flag on @Field or an EL.
On 22 févr. 2010, at 09:54, Sanne Grinovero wrote:
it's not my usecase, it's described in the forums:
You mean something like this:
boolean isFieldEnabled(Object value, Object entity, String field);
(having value,entity,field parameters as in Discriminator )?
2010/2/22 Emmanuel Bernard <emmanuel(a)hibernate.org>:
> I guess we can do like we've done for @AnalyzerDiscriminator.
> But can you describe your use case a bit deeper?
> On 22 févr. 2010, at 09:29, Sanne Grinovero wrote:
>> Hello all,
>> there's a user on Search's forum which is asking for a new feature:
>> We already had cases of people wanting to enable/disable indexing at
>> instance level; in this case he wants to avoid indexing certain fields
>> in some conditions; reading a boolean property in the same indexed
>> instance would be good enough.
>> I'm unsure about the binding expression, but the idea of having each
>> Field enabled/disabled independently would indeed have helped me in
>> other situations, preventing me from writing a full ClassBridge for
>> just some special fields.
>> hibernate-dev mailing list