0

我有三个实体:BlockView想要TargetBlock为以下 sql 创建一个 JPA Criteria 查询。

select * from Block INNER JOIN TargetBlock tb ON tb.blockID = b.blockID INNER JOIN view v ON tb.viewID = v.viewID

块有很多意见和很多TargetBlocks

4

1 回答 1

0

有关 Criteria API 的文档,请参阅,

http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Basic_JPA_Development/Querying/Criteria#Join

于 2012-11-28T14:41:43.017 回答