}
else if (onUpdate == CascadeAction.CASCADE
&& onDelete != CascadeAction.CASCADE) {
final List<EnumAttributeValue> arrayValues = new ArrayList<EnumAttributeValue>();
arrayValues.add(new EnumAttributeValue(new JavaSymbolName(
attributeName), new EnumDetails(CASCADE_TYPE,
new JavaSymbolName("PERSIST"))));
arrayValues.add(new EnumAttributeValue(new JavaSymbolName(
attributeName), new EnumDetails(CASCADE_TYPE,
new JavaSymbolName("MERGE"))));
annotationBuilder
.addAttribute(new ArrayAttributeValue<EnumAttributeValue>(
new JavaSymbolName(attributeName), arrayValues));
}