Sql Hql查询问题
我有以下hql查询:Sql Hql查询问题,sql,hibernate,hql,Sql,Hibernate,Hql,我有以下hql查询: from Admin a where a.genericTable is null or (a.genericTable.allowInsertion = true or a.genericTable.allowInsertion is null) 问题在于,结果集排除了筛选器上包含的所有条目:a.genericTable为null 有人知道为什么吗 谢谢 尝试左连接: from Admin as a left join a.genericTable as g where
from Admin a where a.genericTable is null or (a.genericTable.allowInsertion = true or a.genericTable.allowInsertion is null)
问题在于,结果集排除了筛选器上包含的所有条目:a.genericTable为null
有人知道为什么吗
谢谢 尝试左连接:
from Admin as a left join a.genericTable as g
where (g is null or (g.allowInsertion = true or g.allowInsertion is null))
您是否有一些您认为应该返回的示例行?