我需要指定根实体的关系实体的获取行为我想为此使用spring数据org.springframework.data.jpa.repository.EntityGraph注释在上面的方法库中指定图形。但是当我写
@EntityGraph(attributePaths = {“order(items(subitems))”}) List findOrder()
我收到错误,无法在此 ManagedType 上找到具有给定名称 [order(items(subitems))] 的属性
问题:我可以在不使用图形 java API 的情况下以某种方式使用“order(items(subitems))”图形表示法吗?