|| page.getAggregationList().isEmpty() )
return page;
StringBuffer agg_hql = new StringBuffer(" SELECT ");
for( int i=0;i<page.getAggregationList().size();i++ ){
Aggregation item = page.getAggregationList().get(i);
if( i != 0 )
agg_hql.append(",");
agg_hql.append( item.getFun().name());
agg_hql.append( " ( "+item.getProperty()+" ) ");
}
agg_hql.append( from_jqpl );
//List<Object> results = getJpaTemplate().find( agg_hql.toString(),params );
Query query = getEntityManager().createQuery(agg_hql.toString());