protected boolean hasCascadeType(FieldMetadata metadata, Object target, CascadeType... types) {
boolean result = false;
Cascade annotation = getCascade(metadata, target);
if (annotation != null) {
CascadeType[] cascadeTypes = annotation.value();
for (CascadeType cascadeType : cascadeTypes) {
if (isOneOfTypes(cascadeType, types)) {
result = true;