Эс.
Код: Выделить всё
@Repository
public interface UserRepository extends JpaSpecificationExecutor, JpaRepository {
@EntityGraph(attributePaths = { "roles" })
findAll[withRoles](Specification sp);
@EntityGraph(attributePaths = { "groups" })
findAll[withGroups](Specification sp);
etc...
}
Есть ли возможно ли это без использования JPQL?
Спасибо,
Габриэль
Подробнее здесь: https://stackoverflow.com/questions/615 ... ntitygraph