I have 2 tables DOC and SUB_DOC.
I have a query
SELECT COUNT(1) FROM SUB_DOC WHERE ID IN (select ID FROM DOC where SOMEID = 31)
Please help on the JPA metho