I have three entities: Block
, View
and TargetBlock
and want to create a JPA Criteria query for the following sql.
select * from Block INNER JOIN TargetBlock tb ON tb.blockID = b.blockID INNER JOIN view v ON tb.viewID = v.viewID
Block has many views and many TargetBlocks
.