Not really. Criteria queries load objects, not groups of scalars. You can force scalar results through clever use of projections. For example, if you select max(field) on a Criteria where you're specifying the id (so only one row is going to be returned), then you get the field value (max value of all one values is the value). However, this is very inefficient, compared to the HQL equivalent.
Report queries are best done as HQL or SQL.
_________________ Code tags are your friend. Know them and use them.
|