@ -328,7 +328,7 @@ The following example shows how to define a `near` query that finds all persons
@@ -328,7 +328,7 @@ The following example shows how to define a `near` query that finds all persons
====
[source,java]
----
public interface PersonRepository extends MongoRepository<Person, String>
public interface PersonRepository extends MongoRepository<Person, String> {
@ -361,7 +361,7 @@ Spring Data MongoDb supports geo-near queries, as the following example shows:
@@ -361,7 +361,7 @@ Spring Data MongoDb supports geo-near queries, as the following example shows:
[source,java]
----
public interface PersonRepository extends MongoRepository<Person, String>
public interface PersonRepository extends MongoRepository<Person, String> {
@ -388,7 +388,7 @@ By adding the `org.springframework.data.mongodb.repository.Query` annotation to
@@ -388,7 +388,7 @@ By adding the `org.springframework.data.mongodb.repository.Query` annotation to
[source,java]
----
public interface PersonRepository extends MongoRepository<Person, String>
public interface PersonRepository extends MongoRepository<Person, String> {
@ -404,7 +404,7 @@ You can also use the filter property to restrict the set of properties that is m
@@ -404,7 +404,7 @@ You can also use the filter property to restrict the set of properties that is m
[source,java]
----
public interface PersonRepository extends MongoRepository<Person, String>
public interface PersonRepository extends MongoRepository<Person, String> {
@ -455,7 +455,7 @@ to declare the predicate value for `lastname` (which is equivalent to the `?0` p
@@ -455,7 +455,7 @@ to declare the predicate value for `lastname` (which is equivalent to the `?0` p
[source,java]
----
public interface PersonRepository extends MongoRepository<Person, String>
public interface PersonRepository extends MongoRepository<Person, String> {
@ -467,7 +467,7 @@ used in conjunction with JSON reveal a side-effect, because Map-like declaration
@@ -467,7 +467,7 @@ used in conjunction with JSON reveal a side-effect, because Map-like declaration
[source,java]
----
public interface PersonRepository extends MongoRepository<Person, String>
public interface PersonRepository extends MongoRepository<Person, String> {