我已经定义了一个存储库,如下所示:
public interface ServiceRepository extends GraphRepository<Service>
{
List<Service> findByName(String name);
}
在存储库上调用 findByName 可以使其确实返回具有匹配名称属性的服务项列表。但是,服务实体包含嵌套实体,我需要能够覆盖此查询的默认深度 1。
有没有像 .findAll(int) 方法一样定义这个查询的深度?
我已经定义了一个存储库,如下所示:
public interface ServiceRepository extends GraphRepository<Service>
{
List<Service> findByName(String name);
}
在存储库上调用 findByName 可以使其确实返回具有匹配名称属性的服务项列表。但是,服务实体包含嵌套实体,我需要能够覆盖此查询的默认深度 1。
有没有像 .findAll(int) 方法一样定义这个查询的深度?