hibernate list() 查出来的List数组怎样获取它里面的值?
hibernate list() 查出来的List数组如下:
System.out.println()打印如下:
["张三","8888"]
这是查出来不同表的字段。
不懂怎样取里面的值。
它有双引码的,如果是[张三,8888] 我用下标可以拿到。
另外,select a.name as name, b.salary as salary from Person as a ,Salary b where a.id= b.personId ;
我想查出来的数据有变量名,有变量值啊,例 如:[name:"张三",salary "8888"]
上面的hql 语句不行啊。请赐教!