コード例 #1
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;
  }
コード例 #2
0
  @Override
  public void setModelAttributes(Map<String, Object> attributes) {
    String uuid = (String) attributes.get("uuid");

    if (uuid != null) {
      setUuid(uuid);
    }

    Long artistId = (Long) attributes.get("artistId");

    if (artistId != null) {
      setArtistId(artistId);
    }

    Long companyId = (Long) attributes.get("companyId");

    if (companyId != null) {
      setCompanyId(companyId);
    }

    Long groupId = (Long) attributes.get("groupId");

    if (groupId != null) {
      setGroupId(groupId);
    }

    Long userId = (Long) attributes.get("userId");

    if (userId != null) {
      setUserId(userId);
    }

    String userName = (String) attributes.get("userName");

    if (userName != null) {
      setUserName(userName);
    }

    Date createDate = (Date) attributes.get("createDate");

    if (createDate != null) {
      setCreateDate(createDate);
    }

    Date modifiedDate = (Date) attributes.get("modifiedDate");

    if (modifiedDate != null) {
      setModifiedDate(modifiedDate);
    }

    Integer status = (Integer) attributes.get("status");

    if (status != null) {
      setStatus(status);
    }

    Long statusByUserId = (Long) attributes.get("statusByUserId");

    if (statusByUserId != null) {
      setStatusByUserId(statusByUserId);
    }

    String statusByUserName = (String) attributes.get("statusByUserName");

    if (statusByUserName != null) {
      setStatusByUserName(statusByUserName);
    }

    Date statusDate = (Date) attributes.get("statusDate");

    if (statusDate != null) {
      setStatusDate(statusDate);
    }

    String name = (String) attributes.get("name");

    if (name != null) {
      setName(name);
    }

    String bio = (String) attributes.get("bio");

    if (bio != null) {
      setBio(bio);
    }

    _entityCacheEnabled = GetterUtil.getBoolean("entityCacheEnabled");
    _finderCacheEnabled = GetterUtil.getBoolean("finderCacheEnabled");
  }