@Override public void setModelAttributes(Map<String, Object> attributes) { Long releaseId = (Long) attributes.get("releaseId"); if (releaseId != null) { setReleaseId(releaseId); } Date createDate = (Date) attributes.get("createDate"); if (createDate != null) { setCreateDate(createDate); } Date modifiedDate = (Date) attributes.get("modifiedDate"); if (modifiedDate != null) { setModifiedDate(modifiedDate); } String servletContextName = (String) attributes.get("servletContextName"); if (servletContextName != null) { setServletContextName(servletContextName); } Integer buildNumber = (Integer) attributes.get("buildNumber"); if (buildNumber != null) { setBuildNumber(buildNumber); } Date buildDate = (Date) attributes.get("buildDate"); if (buildDate != null) { setBuildDate(buildDate); } Boolean verified = (Boolean) attributes.get("verified"); if (verified != null) { setVerified(verified); } Integer state = (Integer) attributes.get("state"); if (state != null) { setState(state); } String testString = (String) attributes.get("testString"); if (testString != null) { setTestString(testString); } }
public void setPrimaryKey(long primaryKey) { setReleaseId(primaryKey); }