You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/ReactiveMongoRepository.java
+23-6
Original file line number
Diff line number
Diff line change
@@ -64,16 +64,33 @@ public interface ReactiveMongoRepository<T, ID> extends ReactiveSortingRepositor
Copy file name to clipboardExpand all lines: src/main/asciidoc/reference/query-by-example.adoc
+7
Original file line number
Diff line number
Diff line change
@@ -97,3 +97,10 @@ Query query = new Query(new Criteria().alike(example));
97
97
List<Person> result = template.find(query, Person.class);
98
98
----
99
99
====
100
+
101
+
[NOTE]
102
+
====
103
+
`UntypedExampleMatcher` is likely the right choice for you if you are storing different entities within a single collection or opted out of writing <<mongo-template.type-mapping,type hints>>.
104
+
105
+
Also, keep in mind that using `@TypeAlias` requires eager initialization of the `MappingContext`. To do so, configure `initialEntitySet` to to ensure proper alias resolution for read operations.
0 commit comments