@Override public void setModelAttributes(Map<String, Object> attributes) { Long mvccVersion = (Long) attributes.get("mvccVersion"); if (mvccVersion != null) { setMvccVersion(mvccVersion); } Long portalPreferencesId = (Long) attributes.get("portalPreferencesId"); if (portalPreferencesId != null) { setPortalPreferencesId(portalPreferencesId); } Long ownerId = (Long) attributes.get("ownerId"); if (ownerId != null) { setOwnerId(ownerId); } Integer ownerType = (Integer) attributes.get("ownerType"); if (ownerType != null) { setOwnerType(ownerType); } String preferences = (String) attributes.get("preferences"); if (preferences != null) { setPreferences(preferences); } }
@Override public void setPrimaryKey(long primaryKey) { setPortalPreferencesId(primaryKey); }