public static boolean onCheckValidationConstraints ( Field attribute ) { // / Checks if attribute contains any validation constraint enabled return attribute . isAnnotationPresent ( AssertFalse . class ) || attribute . isAnnotationPresent ( AssertTrue . class ) || attribute . isAnnotationPresent ( DecimalMax . class ) || attribute . isAnnotationPresent ( DecimalMin . class ) || attribute . isAnnotationPresent ( Digits . class ) || attribute . isAnnotationPresent ( Future . class ) || attribute . isAnnotationPresent ( Max . class ) || attribute . isAnnotationPresent ( Min . class ) || attribute . isAnnotationPresent ( NotNull . class ) || attribute . isAnnotationPresent ( Null . class ) || attribute . isAnnotationPresent ( Past . class ) || attribute . isAnnotationPresent ( Pattern . class ) || attribute . isAnnotationPresent ( Size . class ) ; }
Returns true if an entity contains attributes with validation constraints enabled