Exemplo n.º 1
0
  @Override
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }

    KaleoTaskClp kaleoTask = null;

    try {
      kaleoTask = (KaleoTaskClp) obj;
    } catch (ClassCastException cce) {
      return false;
    }

    long primaryKey = kaleoTask.getPrimaryKey();

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

    clone.setKaleoTaskId(getKaleoTaskId());
    clone.setGroupId(getGroupId());
    clone.setCompanyId(getCompanyId());
    clone.setUserId(getUserId());
    clone.setUserName(getUserName());
    clone.setCreateDate(getCreateDate());
    clone.setModifiedDate(getModifiedDate());
    clone.setKaleoDefinitionId(getKaleoDefinitionId());
    clone.setKaleoNodeId(getKaleoNodeId());
    clone.setName(getName());
    clone.setDescription(getDescription());

    return clone;
  }