expecting IDENT, found '*' 错误

来源:互联网 发布:2013十大网络流行语 编辑:程序博客网 时间:2024/06/10 09:04

expecting IDENT, found '*' near line 1, column 10 [selecto.* from com.hd123.hdpos4.sys.dao.group.PGroupEntity o, com.hd123.hdpos4.sys.dao.group.PGroupUser u where o.group.uuid = u.group.uuid and u.userId = :userId and o.group.type = :groupType]


这个错误是因为,hql中直接使用对象。所以select  的是对象。加*就错误了


将.*去掉  只用o

0 0
原创粉丝点击