示例#1
0
  @Override
  public void populate(final Map<String, Serializable> propertiesMap) {

    super.populate(propertiesMap); // let base class handle primitives, etc.

    // correctly convert aggregate type
    if (propertiesMap.containsKey(AGGREGATE_TYPE_ID)) {
      Serializable value = propertiesMap.get(AGGREGATE_TYPE_ID);
      if (value != null) {
        setAggregateType(AggregationType.valueOf(value.toString()));
      }
    }
  }