Field[] fields = currClass.getDeclaredFields();
for (Field field : fields) {
if (field.isAnnotationPresent(Unique.class)) {
if (!field.isAnnotationPresent(Index.class)) {
throw new UniqueFieldsMustBeIndexedException(
targetClass, field);
}
field.setAccessible(true);
uniqueFieldHandler.addUniqueField(targetClass, field);