Skip to content

Commit 7b6a068

Browse files
christophstroblmp911de
authored andcommitted
Update javadoc.
See: #4184 See: #4197 Original pull request: #4203.
1 parent 034a352 commit 7b6a068

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,9 +1326,10 @@ default long exactCount(Query query, String collectionName) {
13261326
/**
13271327
* Insert the object into the collection for the entity type of the object to save. <br />
13281328
* The object is converted to the MongoDB native representation using an instance of {@see MongoConverter}. <br />
1329-
* If your object has an "Id' property, it will be set with the generated Id from MongoDB. If your Id property is a
1330-
* String then MongoDB ObjectId will be used to populate that string. Otherwise, the conversion from ObjectId to your
1331-
* property type will be handled by Spring's BeanWrapper class that leverages Type Conversion API. See
1329+
* If your object has an {@literal Id} property which holds a {@literal null} value, it will be set with the generated
1330+
* Id from MongoDB. If your Id property is a String then MongoDB ObjectId will be used to populate that string.
1331+
* Otherwise, the conversion from ObjectId to your property type will be handled by Spring's BeanWrapper class that
1332+
* leverages Type Conversion API. See
13321333
* <a href="https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#validation" > Spring's
13331334
* Type Conversion"</a> for more details. <br />
13341335
* 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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,9 +1093,10 @@ default Mono<Long> exactCount(Query query, String collectionName) {
10931093
/**
10941094
* Insert the object into the collection for the entity type of the object to save. <br />
10951095
* The object is converted to the MongoDB native representation using an instance of {@see MongoConverter}. <br />
1096-
* If your object has an "Id' property, it will be set with the generated Id from MongoDB. If your Id property is a
1097-
* String then MongoDB ObjectId will be used to populate that string. Otherwise, the conversion from ObjectId to your
1098-
* property type will be handled by Spring's BeanWrapper class that leverages Type Conversion API. See
1096+
* If your object has an {@literal Id} property which holds a {@literal null} value, it will be set with the generated
1097+
* Id from MongoDB. If your Id property is a String then MongoDB ObjectId will be used to populate that string.
1098+
* Otherwise, the conversion from ObjectId to your property type will be handled by Spring's BeanWrapper class that
1099+
* leverages Type Conversion API. See
10991100
* <a href="https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#validation" > Spring's
11001101
* Type Conversion"</a> for more details. <br />
11011102
* Insert is used to initially store the object into the database. To update an existing object use the save method.

0 commit comments

Comments
 (0)