@Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;

    if (obj instanceof Account == false) return false;
    Account other = (Account)obj;

    if (other.getAccountId() == null ^ this.getAccountId() == null) return false;
    if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false) return false;
    if (other.getAccountName() == null ^ this.getAccountName() == null) return false;
    if (other.getAccountName() != null && other.getAccountName().equals(this.getAccountName()) == false) return false;
    return true;
  }