@Query("SELECT DISTINCT mag FROM Magazine mag, IN(mag.articles) art WHERE art.name= 'Grisham'")
这种方式能够正常使用Page的分页功能html
public Page<Magazine> findDistinctByArticles_Name(Pageable page,String name);
这种方式的话,distinct是内存过滤的,另外page的count也不许确oracle
JPQL Collection Member Declarationscode