Using of Aggregate Functions

Hi,

I generally fetch data as given below :

List studentList = datamanager.load(Student.class).query(“SELECT s FROM student”).list();

Now, my question is how to fetch data from an aggregate function query.

Eg :
Query is SELECT AVG(o.quantity) FROM Order o

then how do i bring the data from the query to a java object.

Thanks in advance.

In the documentation there is an example of such use of dataManager: Loading Scalar and Aggregate Values

1 Like