I'm not sure I understand what you really want, but you can rewrite your query
SELECT *
FROM product_order po
WHERE EXISTS
(
SELECT 1
FROM product_process pp
WHERE pp.product_id = po.product_id AND pp.version = po.pp_version
HAVING count(1) > 3
)
It should be easy to make this work with Spring Data JPA Specifications
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…