mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1331 - ENH: Support Aggregation formula with findSingleAttribute() ... max, min, avg, count and count(distinct ..)
This commit is contained in:
@@ -44,6 +44,13 @@ public class SqlBeanLoad {
|
||||
return lazyLoading;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the DB read context.
|
||||
*/
|
||||
public DbReadContext ctx() {
|
||||
return ctx;
|
||||
}
|
||||
|
||||
/**
|
||||
* Increment the resultSet index 1.
|
||||
*/
|
||||
@@ -86,4 +93,14 @@ public class SqlBeanLoad {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the given value into the property.
|
||||
*/
|
||||
public void load(BeanProperty target, Object dbVal) {
|
||||
if (!refreshLoading) {
|
||||
target.setValue(bean, dbVal);
|
||||
} else {
|
||||
target.setValueIntercept(bean, dbVal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user