HQL多表查询只想查询出要的对象的时候
from AAA as a,BBB as b where a.a = b.a这里取出会是俩个对象
HQL想要只取出一个对象的时候可以这样写
select a from AAA as a,BBB as b where a.a = b.a
HQL多表查询只想查询出要的对象的时候
from AAA as a,BBB as b where a.a = b.a这里取出会是俩个对象
HQL想要只取出一个对象的时候可以这样写
select a from AAA as a,BBB as b where a.a = b.a