3.4. 定义查询方法

The repository proxy has two ways to derive a store-specific query from the method name. It can derive the query from the method name directly, or by using a manually defined query. Available options depend on the actual store. However, there’s got to be a strategy that decides what actual query is created. Let’s have a look at the available options.

Repository代理有两种方式从方法名中推导出特定(store-specific)查询:通过方法名直接推导出来或者使用手动指定一个查询,请根据实际情况进行选择。然而我们必须明白查询方法的生成的策略是什么。一起看看这些可用的选项。

results matching ""

    No results matching ""