public interface IdUniquenessResolver extends Service
Service can be provided by the
SearchConfiguration implementor when it has such knowledge.
If no IdUniquenessResolver is enlisted as provided service, then it is assumed
that uniqueness cannot be guaranteed.
This contract is used by Hibernate Search to decide whether it can optimize delete operations
on a given index or not.| Modifier and Type | Method and Description |
|---|---|
boolean |
areIdsUniqueForClasses(Class<?> entityInIndex,
Class<?> otherEntityInIndex)
Returns
true if the same identifier value cannot be shared between
two class instances of entityInIndex and otherEntityInIndex. |
Copyright © 2006–2015 Hibernate. All rights reserved.