Documentation for method which will return List<T>

Documentation for method which will return List<T>
This commit is contained in:
Mohsin Husen 2013-04-10 10:54:48 +02:00
parent 3fd3286386
commit cf91d82e81

View File

@ -58,7 +58,7 @@ Extending ElasticsearchRepository for custom methods
public interface BookRepository extends Repository<Book, String> {
//Equivalent Json Query will be "{ "bool" : { "must" :[{ "field" : {"name" : "?"} },{ "field" : {"price" : "?"} }]} }"
List<Book>; findByNameAndPrice(String name, Integer price);
List<Book> findByNameAndPrice(String name, Integer price);
//Equivalent Json Query will be "{"bool" : {"should" : [ {"field" : "name" : "?"}}, {"field" : {"price" : "?"}} ]}}"
List<Book> findByNameOrPrice(String name, Integer price);