JPA2 Criteria-API: select… in (select from where)

前端 未结 4 726
醉酒成梦
醉酒成梦 2020-12-18 15:22

I have the following database model:

A
aId

AB
aId
bId

B
bId
status

In a Spring data Specification, I want to return the instances of A wh

4条回答
  •  感情败类
    2020-12-18 15:51

    There are some good examples included on a previous post that address exactly what you're trying to accomplish here: jpa-2-0-criteria-api-subqueries-in-expressions.

提交回复
热议问题