SDN4:如何定义从finder-method名称派生的查询的深度?

时间:2015-07-09 16:01:39

标签: neo4j spring-data-neo4j-4

我已经按如下方式定义了一个存储库:

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

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

是否有定义此查询的深度,因为有.findAll(int)方法?

1 个答案:

答案 0 :(得分:1)

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