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 share between
two class instances of entityInIndex and otherEntityInIndex. |
boolean areIdsUniqueForClasses(Class<?> entityInIndex, Class<?> otherEntityInIndex)
true if the same identifier value cannot be share between
two class instances of entityInIndex and otherEntityInIndex.entityInIndex - one entity classotherEntityInIndex - the other entity classtrue if the same identifier value cannot be share between
two class instances of entityInIndex and otherEntityInIndexCopyright © 2006–2016 Hibernate. All rights reserved.