@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof CalendarResourceClp)) { return false; } CalendarResourceClp calendarResource = (CalendarResourceClp) obj; long primaryKey = calendarResource.getPrimaryKey(); if (getPrimaryKey() == primaryKey) { return true; } else { return false; } }
@Override public Object clone() { CalendarResourceClp clone = new CalendarResourceClp(); clone.setUuid(getUuid()); clone.setCalendarResourceId(getCalendarResourceId()); clone.setGroupId(getGroupId()); clone.setCompanyId(getCompanyId()); clone.setUserId(getUserId()); clone.setUserName(getUserName()); clone.setCreateDate(getCreateDate()); clone.setModifiedDate(getModifiedDate()); clone.setResourceBlockId(getResourceBlockId()); clone.setClassNameId(getClassNameId()); clone.setClassPK(getClassPK()); clone.setClassUuid(getClassUuid()); clone.setCode(getCode()); clone.setName(getName()); clone.setDescription(getDescription()); clone.setActive(getActive()); return clone; }