[hibernate-dev] API changes in FieldBridge

Sanne Grinovero sanne at hibernate.org
Wed Sep 7 07:01:51 EDT 2011


On 7 September 2011 12:43, Emmanuel Bernard <emmanuel at hibernate.org> wrote:
> #1
> A specific interface is what looks the best to me too.
>
> #2 we might be able to reuse #1's interface.
> I don't fully understand what allowSkipOnUnchangedFields does.

I think we need a way for implementors to state that the index needs
to be updated even if all the listed properties are not considered
dirty, basically a toggle to disable the optimisation for a specific
bridge implementation.

Example: when the entity is updated, and no indexed fields are
changed, but we still want to store a "last updated timestamp" in the
Lucene index.

If you think we don't need it I'll be glad to leave it out.

Sanne



More information about the hibernate-dev mailing list