This commit is contained in:
2023-09-11 21:33:41 +08:00
parent 12f6a50232
commit f1e97f1e35

View File

@@ -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<ResourceEntity> {
@EntityGraph(attributePaths = {"children"})
// @EntityGraph(attributePaths = {"children"})
List<ResourceEntity> findAllByTypeAndParentIsNull(String type);
}