@Override
  public Object clone() {
    KaleoDraftDefinitionClp clone = new KaleoDraftDefinitionClp();

    clone.setKaleoDraftDefinitionId(getKaleoDraftDefinitionId());
    clone.setGroupId(getGroupId());
    clone.setCompanyId(getCompanyId());
    clone.setUserId(getUserId());
    clone.setUserName(getUserName());
    clone.setCreateDate(getCreateDate());
    clone.setModifiedDate(getModifiedDate());
    clone.setName(getName());
    clone.setTitle(getTitle());
    clone.setContent(getContent());
    clone.setVersion(getVersion());
    clone.setDraftVersion(getDraftVersion());

    return clone;
  }
  @Override
  public void setModelAttributes(Map<String, Object> attributes) {
    Long kaleoDraftDefinitionId = (Long) attributes.get("kaleoDraftDefinitionId");

    if (kaleoDraftDefinitionId != null) {
      setKaleoDraftDefinitionId(kaleoDraftDefinitionId);
    }

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

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

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

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

    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);
    }

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

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

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

    if (title != null) {
      setTitle(title);
    }

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

    if (content != null) {
      setContent(content);
    }

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

    if (version != null) {
      setVersion(version);
    }

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

    if (draftVersion != null) {
      setDraftVersion(draftVersion);
    }
  }