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:
@@ -315,11 +315,7 @@ public class AnnotationFields extends AnnotationParser {
|
||||
|
||||
Aggregation aggregation = get(prop, Aggregation.class);
|
||||
if (aggregation != null) {
|
||||
prop.setAggregation(aggregation.value());
|
||||
}
|
||||
Sum sum = get(prop, Sum.class);
|
||||
if (sum != null) {
|
||||
prop.setAggregation("sum(" + prop.getName() + ")");
|
||||
prop.setAggregation(aggregation.value().replace("$1", prop.getName()));
|
||||
}
|
||||
|
||||
Version version = get(prop, Version.class);
|
||||
|
||||
Reference in New Issue
Block a user