@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;
  }
  @Override
  public void setModelAttributes(Map<String, Object> attributes) {
    String uuid = (String) attributes.get("uuid");

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

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

    if (calendarResourceId != null) {
      setCalendarResourceId(calendarResourceId);
    }

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

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

    if (resourceBlockId != null) {
      setResourceBlockId(resourceBlockId);
    }

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

    if (classNameId != null) {
      setClassNameId(classNameId);
    }

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

    if (classPK != null) {
      setClassPK(classPK);
    }

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

    if (classUuid != null) {
      setClassUuid(classUuid);
    }

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

    if (code != null) {
      setCode(code);
    }

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

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

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

    if (description != null) {
      setDescription(description);
    }

    Boolean active = (Boolean) attributes.get("active");

    if (active != null) {
      setActive(active);
    }
  }