我有两个由连接表连接的实体。当我尝试获取所有关联实体时,这只获取关联的标识,而不是它们的属性值:
User.createCriteria().get {
eq property, value
fetchMode 'authorities', FetchMode.JOIN
}
只导致与连接表的连接:
...
left outer join
search_role_auth_user authoritie2_
on this_.ID=authoritie2_.AUTHORITIES_ID
...
我怎样才能急切地获取关联实体的数据?