@Override public Object clone() { MBMessageImpl mbMessageImpl = new MBMessageImpl(); mbMessageImpl.setUuid(getUuid()); mbMessageImpl.setMessageId(getMessageId()); mbMessageImpl.setGroupId(getGroupId()); mbMessageImpl.setCompanyId(getCompanyId()); mbMessageImpl.setUserId(getUserId()); mbMessageImpl.setUserName(getUserName()); mbMessageImpl.setCreateDate(getCreateDate()); mbMessageImpl.setModifiedDate(getModifiedDate()); mbMessageImpl.setClassNameId(getClassNameId()); mbMessageImpl.setClassPK(getClassPK()); mbMessageImpl.setCategoryId(getCategoryId()); mbMessageImpl.setThreadId(getThreadId()); mbMessageImpl.setRootMessageId(getRootMessageId()); mbMessageImpl.setParentMessageId(getParentMessageId()); mbMessageImpl.setSubject(getSubject()); mbMessageImpl.setBody(getBody()); mbMessageImpl.setFormat(getFormat()); mbMessageImpl.setAnonymous(getAnonymous()); mbMessageImpl.setPriority(getPriority()); mbMessageImpl.setAllowPingbacks(getAllowPingbacks()); mbMessageImpl.setAnswer(getAnswer()); mbMessageImpl.setStatus(getStatus()); mbMessageImpl.setStatusByUserId(getStatusByUserId()); mbMessageImpl.setStatusByUserName(getStatusByUserName()); mbMessageImpl.setStatusDate(getStatusDate()); mbMessageImpl.resetOriginalValues(); return mbMessageImpl; }
public Object clone() { MBMessageImpl mbMessageImpl = new MBMessageImpl(); mbMessageImpl.setUuid(getUuid()); MBMessageModelImpl mbMessageModelImpl = mbMessageImpl; mbMessageModelImpl._originalUuid = mbMessageModelImpl._uuid; mbMessageImpl.setMessageId(getMessageId()); mbMessageImpl.setGroupId(getGroupId()); mbMessageModelImpl._originalGroupId = mbMessageModelImpl._groupId; mbMessageModelImpl._setOriginalGroupId = false; mbMessageImpl.setCompanyId(getCompanyId()); mbMessageImpl.setUserId(getUserId()); mbMessageImpl.setUserName(getUserName()); mbMessageImpl.setCreateDate(getCreateDate()); mbMessageImpl.setModifiedDate(getModifiedDate()); mbMessageImpl.setClassNameId(getClassNameId()); mbMessageImpl.setClassPK(getClassPK()); mbMessageImpl.setCategoryId(getCategoryId()); mbMessageImpl.setThreadId(getThreadId()); mbMessageImpl.setRootMessageId(getRootMessageId()); mbMessageImpl.setParentMessageId(getParentMessageId()); mbMessageImpl.setSubject(getSubject()); mbMessageImpl.setBody(getBody()); mbMessageImpl.setAttachments(getAttachments()); mbMessageImpl.setAnonymous(getAnonymous()); mbMessageImpl.setPriority(getPriority()); mbMessageImpl.setAllowPingbacks(getAllowPingbacks()); mbMessageImpl.setStatus(getStatus()); mbMessageImpl.setStatusByUserId(getStatusByUserId()); mbMessageImpl.setStatusByUserName(getStatusByUserName()); mbMessageImpl.setStatusDate(getStatusDate()); return mbMessageImpl; }