[英]JPQL query for entities belonging to another entity and satisfying certain conditions
您只需要加入:
select a from Patient p
join p.appointments a
where p.id = :patientId
and a.date between :start and :end
如果您對某事不太了解,最好的方法是閱讀文檔 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.