code: @Override
      public ValidationMode getValidationMode() {
          PersistenceUnitValidationModeType validationMode = persistenceUnitXml.getValidationMode();
          if (validationMode == null) {
              return null;
          }
  
          return ValidationMode.valueOf(validationMode.name());
      }
docs: /*
  @see javax.persistence.spi.PersistenceUnitInfo#getValidationMode()