mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
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:
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user