select distinct groupMember.proUcer.proUserDetail
from proGroupMembership groupMember
where groupMember.proGroup.id =:groupId and groupMember.status = 1
order by groupMember.proUcer.proUserDetail.firstName
ORA-01791例外 当我执行此查询时来。 经过多次研究后,我得到了解决这个问题的解决方案,选择了一个我们正在申请的专栏 - 所以我根据解决方案转换查询
select distinct groupMember.proUcer.proUserDetail, groupMember.proUcer.proUserDetail.firstName
from proGroupMembership groupMember
where groupMember.proGroup.id =:groupId and groupMember.status = 1
order by groupMember.proUcer.proUserDetail.firstName
现在我的问题是我只需要对象列表但是 query.list()返回对象数组的列表。 请帮我解决这个问题。