多表查询时,使用Query对象,来构造hql语句;首先 select 字段时 需要:select a.b as b from com.test.User a ....一定要加as。多个表返回的是Object数组。