&& !entityReadClass.equals(Object.class) && !dtoWriteClass.equals(Object.class)
// check the same types
&& !sameDataType(dtoWriteClass, entityReadClass)
) {
throw new AnnotationValidatingBindingException(
dtoField, dtoWrite.getClass().getCanonicalName(), dtoWriteClass.getSimpleName(),
entityField, entityRead.getClass().getCanonicalName(), entityReadClass.getSimpleName(), false);
}
}