HQL输出对象属性的嵌套查询实例: select t.name from Topic t where t.topicId IN (select a.topicId from Acl as a where a.roleId=1)