From f97ab25411ece19ab65a3f2400c6d20f4945e585 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Tue, 6 Dec 2011 19:41:35 +0100 Subject: [PATCH] DATAMONGO-338 - Updated reference documentation regarding new keywords. --- src/docbkx/reference/mongo-repositories.xml | 41 ++++++++++++++++++++- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/src/docbkx/reference/mongo-repositories.xml b/src/docbkx/reference/mongo-repositories.xml index 1b63405a6..655d65563 100644 --- a/src/docbkx/reference/mongo-repositories.xml +++ b/src/docbkx/reference/mongo-repositories.xml @@ -235,6 +235,16 @@ public class PersonRepositoryTests { regex) + + Regex + + findByFirstnameRegex(String + firstname) + + {"firstname" : {"$regex" : firstname + }} + + (No keyword) @@ -279,7 +289,34 @@ public class PersonRepositoryTests { box) {"location" : {"$within" : {"$box" : [ [x1, y1], - x2, y2]}}} + x2, y2]}}}True + + + + IsTrue, + True + + findByActiveIsTrue() + + {"active" : true} + + + + IsFalse, + False + + findByActiveIsFalse() + + {"active" : false} + + + + Exists + + findByLocationExists(boolean + exists) + + {"location" : {"$exists" : exists }} @@ -469,4 +506,4 @@ Page<Person> page = repository.findAll(person.lastname.contains("a"), MongoDB queries. - + \ No newline at end of file