@Override public void setModelAttributes(Map<String, Object> attributes) { Long akismetDataId = (Long) attributes.get("akismetDataId"); if (akismetDataId != null) { setAkismetDataId(akismetDataId); } Date modifiedDate = (Date) attributes.get("modifiedDate"); if (modifiedDate != null) { setModifiedDate(modifiedDate); } Long mbMessageId = (Long) attributes.get("mbMessageId"); if (mbMessageId != null) { setMbMessageId(mbMessageId); } String type = (String) attributes.get("type"); if (type != null) { setType(type); } String permalink = (String) attributes.get("permalink"); if (permalink != null) { setPermalink(permalink); } String referrer = (String) attributes.get("referrer"); if (referrer != null) { setReferrer(referrer); } String userAgent = (String) attributes.get("userAgent"); if (userAgent != null) { setUserAgent(userAgent); } String userIP = (String) attributes.get("userIP"); if (userIP != null) { setUserIP(userIP); } String userURL = (String) attributes.get("userURL"); if (userURL != null) { setUserURL(userURL); } }
@Override public Object clone() { AkismetDataClp clone = new AkismetDataClp(); clone.setAkismetDataId(getAkismetDataId()); clone.setModifiedDate(getModifiedDate()); clone.setMbMessageId(getMbMessageId()); clone.setType(getType()); clone.setPermalink(getPermalink()); clone.setReferrer(getReferrer()); clone.setUserAgent(getUserAgent()); clone.setUserIP(getUserIP()); clone.setUserURL(getUserURL()); return clone; }