HQL语句报错
[解决办法]
private Authority authority;在这个类中,定义这个对象,有意义吗?
改为:
select a.id,a.name,a.description,b.id,b.name from Authority a left join Authority b on a.id = b.id where a.id is not null
[解决办法]
既然你都用了hibernate,父对象a.authority可以通过hibernate内部的机制获取,为啥还要自己写HQL?
[解决办法]
select a.id,a.name,a.description,b.id,b.name from pojo.Authority as a left join a.authority as b
先试试前面,
再看添加条件 where b.id is not null