2

我已经定义了一个存储库,如下所示:

public interface ServiceRepository extends GraphRepository<Service> 
{
    List<Service> findByName(String name);
}

在存储库上调用 findByName 可以使其确实返回具有匹配名称属性的服务项列表。但是,服务实体包含嵌套实体,我需要能够覆盖此查询的默认深度 1。

有没有像 .findAll(int) 方法一样定义这个查询的深度?

4

1 回答 1

1

目前派生查询不允许您指定与默认值 (1) 不同的深度。

于 2015-07-10T03:09:17.473 回答