code: protected boolean isSaveUpdateCascade(String cascade) {
          String[] cascades = cascade.split(",");
  
          for (String cascadeProp : cascades) {
              String trimmedProp = cascadeProp.trim();
  
              if (CASCADE_SAVE_UPDATE.equals(trimmedProp) || CASCADE_ALL.equals(trimmedProp) || CASCADE_ALL_DELETE_ORPHAN.equals(trimmedProp)) {
                  return true;
              }
          }
  
          return false;
      }
docs: Check if a save-update cascade is defined within the Hibernate cascade properties string.
  @param cascade The string containing the cascade properties.
  @return True if save-update or any other cascade property that encompasses those is present.