@Override protected T doPopulateEntry(Map<String, Serializable> properties) throws Exception { T attributedType = doCreateInstance(properties); attributedType.setId(properties.get("id").toString()); for (Property<Serializable> property: getAttributedProperties(attributedType)) { Serializable value = properties.get(property.getName()); if (value != null) { property.setValue(attributedType, value); } } return attributedType; }
@Override protected T doPopulateEntry(Map<String, Serializable> properties) throws Exception { T attributedType = doCreateInstance(properties); attributedType.setId(properties.get("id").toString()); for (Property<Serializable> property: getAttributedProperties(attributedType)) { Serializable value = properties.get(property.getName()); if (value != null) { property.setValue(attributedType, value); } } return attributedType; }
@Override protected void doPopulateProperties(Map<String, Serializable> properties) throws Exception { T attributedType = getEntry(); properties.put("id", attributedType.getId()); for (Property<Serializable> property: getAttributedProperties(attributedType)) { Serializable value = property.getValue(getEntry()); if (value != null) { properties.put(property.getName(), value); } } }
@Override protected void doPopulateProperties(Map<String, Serializable> properties) throws Exception { T attributedType = getEntry(); properties.put("id", attributedType.getId()); for (Property<Serializable> property: getAttributedProperties(attributedType)) { Serializable value = property.getValue(getEntry()); if (value != null) { properties.put(property.getName(), value); } } }