SpringJPA请建议自定义查询

时间:2018-02-19 07:45:29

标签: spring-data-jpa

您可以为

建议自定义查询吗?
SELECT p1.*
FROM ngb.payment_bifurcation AS p1
WHERE p1.bill_id = 13528 And exists  ( SELECT *
        FROM ngb.payment AS p2
          WHERE p2.deleted = false and p1.payment_id = p2.id
      ) 

bill_id是一个参数。

1 个答案:

答案 0 :(得分:0)

您可能需要为此创建本机查询。标准数据JPA方法可能无济于事。