Merge pull request #1913 from ebean-orm/feature/MaxMin

Change to use @Aggregation as meta annotation - support newly added @Max, @Min, @Avg annotations
This commit is contained in:
Rob Bygrave
2020-01-14 16:41:44 +13:00
committed by GitHub
3 changed files with 4 additions and 7 deletions
@@ -1,6 +1,7 @@
package org.tests.model.aggregation;
import io.ebean.annotation.Aggregation;
import io.ebean.annotation.Max;
import io.ebean.annotation.Sum;
import io.ebean.annotation.View;
@@ -24,7 +25,7 @@ public class DMachineStatsAgg {
@Aggregation("sum(hours)") // which is the same as: @Sum
long hours;
@Aggregation("max(rate)")
@Max
BigDecimal rate;
/**