Skip to content

Commit 6949e4a

Browse files
christophstroblmp911de
authored andcommitted
Update javadoc.
See: #4184 See: #4197 Original pull request: #4203.
1 parent f53f6b9 commit 6949e4a

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoOperations.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -1303,9 +1303,10 @@ default long exactCount(Query query, String collectionName) {
13031303
/**
13041304
* Insert the object into the collection for the entity type of the object to save. <br />
13051305
* The object is converted to the MongoDB native representation using an instance of {@see MongoConverter}. <br />
1306-
* If your object has an "Id' property, it will be set with the generated Id from MongoDB. If your Id property is a
1307-
* String then MongoDB ObjectId will be used to populate that string. Otherwise, the conversion from ObjectId to your
1308-
* property type will be handled by Spring's BeanWrapper class that leverages Type Conversion API. See
1306+
* If your object has an {@literal Id} property which holds a {@literal null} value, it will be set with the generated
1307+
* Id from MongoDB. If your Id property is a String then MongoDB ObjectId will be used to populate that string.
1308+
* Otherwise, the conversion from ObjectId to your property type will be handled by Spring's BeanWrapper class that
1309+
* leverages Type Conversion API. See
13091310
* <a href="https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#validation" > Spring's
13101311
* Type Conversion"</a> for more details. <br />
13111312
* Insert is used to initially store the object into the database. To update an existing object use the save method.

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoOperations.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -1110,9 +1110,10 @@ default Mono<Long> exactCount(Query query, String collectionName) {
11101110
* <br />
11111111
* The object is converted to the MongoDB native representation using an instance of {@see MongoConverter}.
11121112
* <br />
1113-
* If your object has an "Id' property, it will be set with the generated Id from MongoDB. If your Id property is a
1114-
* String then MongoDB ObjectId will be used to populate that string. Otherwise, the conversion from ObjectId to your
1115-
* property type will be handled by Spring's BeanWrapper class that leverages Type Conversion API. See
1113+
* If your object has an {@literal Id} property which holds a {@literal null} value, it will be set with the generated
1114+
* Id from MongoDB. If your Id property is a String then MongoDB ObjectId will be used to populate that string.
1115+
* Otherwise, the conversion from ObjectId to your property type will be handled by Spring's BeanWrapper class that
1116+
* leverages Type Conversion API. See
11161117
* <a href="https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#validation" > Spring's
11171118
* Type Conversion"</a> for more details.
11181119
* <br />

0 commit comments

Comments
 (0)