0
我有實體Parent
和Child
單邊關係Child
n -> 1
Parent
。換句話說Parent
不知道它的孩子。JPQL - 如何選擇所有實體不被其他實體集合中的任何行引用
如何編寫一個JPQL
查詢,該查詢將選擇Parent
的所有實例,而這些實例不符合Child
的特定子集符合某些謂詞?
例子: select all parents which are not referred to by children who are younger than 8 years