diff --git a/src/main/java/cn/lihongjie/coal/resource/repository/ResourceRepository.java b/src/main/java/cn/lihongjie/coal/resource/repository/ResourceRepository.java index 45af9792..4ed6ce20 100644 --- a/src/main/java/cn/lihongjie/coal/resource/repository/ResourceRepository.java +++ b/src/main/java/cn/lihongjie/coal/resource/repository/ResourceRepository.java @@ -2,7 +2,6 @@ package cn.lihongjie.coal.resource.repository; import cn.lihongjie.coal.base.dao.BaseRepository; import cn.lihongjie.coal.resource.entity.ResourceEntity; -import org.springframework.data.jpa.repository.EntityGraph; import org.springframework.stereotype.Repository; import java.util.List; @@ -11,6 +10,6 @@ import java.util.List; public interface ResourceRepository extends BaseRepository { - @EntityGraph(attributePaths = {"children"}) +// @EntityGraph(attributePaths = {"children"}) List findAllByTypeAndParentIsNull(String type); } \ No newline at end of file