@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof KaleoDraftDefinitionClp)) { return false; } KaleoDraftDefinitionClp kaleoDraftDefinition = (KaleoDraftDefinitionClp) obj; long primaryKey = kaleoDraftDefinition.getPrimaryKey(); if (getPrimaryKey() == primaryKey) { return true; } else { return false; } }
@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; }