Esempio n. 1
0
  @Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }

    if (!(obj instanceof ArtistClp)) {
      return false;
    }

    ArtistClp artist = (ArtistClp) obj;

    long primaryKey = artist.getPrimaryKey();

    if (getPrimaryKey() == primaryKey) {
      return true;
    } else {
      return false;
    }
  }
Esempio n. 2
0
  @Override
  public Object clone() {
    ArtistClp clone = new ArtistClp();

    clone.setUuid(getUuid());
    clone.setArtistId(getArtistId());
    clone.setCompanyId(getCompanyId());
    clone.setGroupId(getGroupId());
    clone.setUserId(getUserId());
    clone.setUserName(getUserName());
    clone.setCreateDate(getCreateDate());
    clone.setModifiedDate(getModifiedDate());
    clone.setStatus(getStatus());
    clone.setStatusByUserId(getStatusByUserId());
    clone.setStatusByUserName(getStatusByUserName());
    clone.setStatusDate(getStatusDate());
    clone.setName(getName());
    clone.setBio(getBio());

    return clone;
  }