如何使用 JPA Criteria 编写以下 MySQL 查询?
select * from deptors where customerId in
(select customerId from address where zipcode="12345-6789")
and gender="male";
我已阅读http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Basic_JPA_Development/Querying/Criteria#Subquery和许多 stackoverflow 线程,包括JPA 2.0、Criteria API、Subqueries、In Expressions。但我就是不明白。感谢您的帮助。