@Override public void setModelAttributes(Map<String, Object> attributes) { Long mvccVersion = (Long) attributes.get("mvccVersion"); if (mvccVersion != null) { setMvccVersion(mvccVersion); } Long passwordTrackerId = (Long) attributes.get("passwordTrackerId"); if (passwordTrackerId != null) { setPasswordTrackerId(passwordTrackerId); } Long userId = (Long) attributes.get("userId"); if (userId != null) { setUserId(userId); } Date createDate = (Date) attributes.get("createDate"); if (createDate != null) { setCreateDate(createDate); } String password = (String) attributes.get("password"); if (password != null) { setPassword(password); } }
@Override public void setPrimaryKey(long primaryKey) { setPasswordTrackerId(primaryKey); }