@Override public void setModelAttributes(Map<String, Object> attributes) { Long mvccVersion = (Long) attributes.get("mvccVersion"); if (mvccVersion != null) { setMvccVersion(mvccVersion); } Long userTrackerPathId = (Long) attributes.get("userTrackerPathId"); if (userTrackerPathId != null) { setUserTrackerPathId(userTrackerPathId); } Long companyId = (Long) attributes.get("companyId"); if (companyId != null) { setCompanyId(companyId); } Long userTrackerId = (Long) attributes.get("userTrackerId"); if (userTrackerId != null) { setUserTrackerId(userTrackerId); } String path = (String) attributes.get("path"); if (path != null) { setPath(path); } Date pathDate = (Date) attributes.get("pathDate"); if (pathDate != null) { setPathDate(pathDate); } }
@Override public void setPrimaryKey(long primaryKey) { setUserTrackerPathId(primaryKey); }