public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    NativeSQLQueryNonScalarReturn that = (NativeSQLQueryNonScalarReturn) o;

    if (alias != null ? !alias.equals(that.alias) : that.alias != null) {
      return false;
    }
    if (lockMode != null ? !lockMode.equals(that.lockMode) : that.lockMode != null) {
      return false;
    }
    if (propertyResults != null
        ? !propertyResults.equals(that.propertyResults)
        : that.propertyResults != null) {
      return false;
    }

    return true;
  }