Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我想像这样在 hql 中选择我的实体
select ent from Entity as ent where ( ent.author.userID = :userID OR ent.userID = :userID )
但是如果 ent.author 没有设置,但是 ent.userID 设置了,我也不会得到任何结果,因为 ent.author 不能加入。
任何想法如何查询类似的东西?