package ervu_business_metrics.model.chart.round;

import property.grid.Formatter;
import rpc.LoadGraphSource;

import ru.cg.webbpm.modules.database.bean.AggregationFunction;
import ru.cg.webbpm.modules.database.bean.annotation.GraphSource;
import ru.cg.webbpm.modules.database.bean.entity_graph.EntityColumn;
import ru.cg.webbpm.modules.standard_annotations.validation.NotNull;

/**
 * @author Vitaly Chekushkin
 */
public class RoundAggregationData {
  @NotNull
  public String dataLabel;
  @NotNull
  @GraphSource(
      value = LoadGraphSource.class,
      scanMode = GraphSource.ScanMode.CLOSEST_PROPERTY_CONTEXT
  )
  public EntityColumn aggregationColumn;
  public Formatter<Object, Object> aggregationColumnFormatter;
  @NotNull
  public AggregationFunction aggregationFunction;
}
