Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
首先,对不起我的英语。
我想用 JPA 创建一个查询,像这样
select * from table1 t1 inner join table2 t2 on t1.id = t2.id and t2.field = 1
怎么做and t2.field = 1里面的“” join(不带WHERE子句)
and t2.field = 1
join
WHERE
提前致谢。
JPQL 不支持。HQL(Hibernate JPQL 实现)with虽然有一个关键字。
with