Home i am getting data from database and query is executed successfully and could not extract the result by using group by id
Reply: 0

i am getting data from database and query is executed successfully and could not extract the result by using group by id

user545
1#
user545 Published in May 21, 2018, 11:20 am

How to do i get driver id and driver name separately?

String hql="select count(tx.driver.driverid),tx.driver.drivername from Transaction tx group by driver"; 
return   (List)hibernateTemplate.find(hql);

service:

List list=driverService.groupby();
Iterator it=list.iterator();

while(it.hasNext())
{

    Object obj=(Object)it.next();
    System.out.println(obj);

} 

result :

[Ljava.lang.Object;@1e65f750
[Ljava.lang.Object;@36d591df
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.340701 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO