this.validator = resolveValidator(entityInterface, propertyName);
}
@SuppressWarnings("unchecked")
private IndexType resolveIndexType(final Class entityInterface, final String propertyName) {
Index annotation = ReflectionTools.getGetterOfProperty(entityInterface, propertyName).getAnnotation(Index.class);
if (annotation != null)
return annotation.type();
if (ReflectionTools.getGetterOfProperty(entityInterface, propertyName).getAnnotation(PartitionIndex.class) != null)
return IndexType.Partition;
return IndexType.None;
}