存储库:
public interface HotelDao extends JpaRepository<Hotel, Integer>,
JpaSpecificationExecutor<Hotel> {
@EntityGraph(HOTEL_BASIC)
@Override
Page<Hotel> findAll(Specification<Hotel> spec, Pageable pageable);
}
findAll(Specification<>, Pageable)
继承自JpaSpecificationExecutor
。如果我想让另一个findAll(Specification<>, Pageable)
使用另一个@EntityGraph
,该怎么办?