【发布时间】:2015-02-06 12:38:00
【问题描述】:
是否有任何类似于以下查询的休眠查询?
MySql 查询 >> select * from mother mot left join children ch on ch.mid = mot.id where ch.id is null
mot.id - 母亲的主键
ch.mid - 外键
ch.id - 孩子的主键
【问题讨论】:
标签: hibernate jpa hql jpql hibernate-criteria
是否有任何类似于以下查询的休眠查询?
MySql 查询 >> select * from mother mot left join children ch on ch.mid = mot.id where ch.id is null
mot.id - 母亲的主键
ch.mid - 外键
ch.id - 孩子的主键
【问题讨论】:
标签: hibernate jpa hql jpql hibernate-criteria
select m from mother m left join m.childrens ch
where ch.mid = m.id and ch.id is null
【讨论】: