String gSql = "select sYear from VIEW_REPORT_BillingRegion group by sYear";
// Query query = sessionFactory.getCurrentSession().createQuery(gSql);
SQLQuery query = this.sessionFactory.getCurrentSession().createSQLQuery(gSql).addScalar("sYear", Hibernate.STRING);
List[Object] list = query.list();
System.out.println("======="+list.size());
for( Object objArr : list){
System.out.println(objArr );
}
System.out.println("============"+list.size());
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment