10000 DOCSP-27400: BsonCreator annotation description fix (#325) · nickldp/docs-kotlin@59afcfc · GitHub
[go: up one dir, main page]

Skip to content

Commit 59afcfc

Browse files
author
Chris Cho
authored
DOCSP-27400: BsonCreator annotation description fix (#325)
* DOCSP-27400: BsonCreator annotation description fix
1 parent 84979da commit 59afcfc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/fundamentals/data-formats/pojo-customization.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,15 +279,15 @@ package:
279279
* - ``BsonCreator``
280280
- Marks a public constructor or a public static method as the creator for
281281
new instances of the class. You must annotate all parameters in the
282-
constructor with ``BsonProperty`` with values that you defined in
283-
the corresponding field declarations.
282+
constructor with either the ``BsonProperty`` or ``BsonId`` annotations.
284283

285284
* - ``BsonDiscriminator``
286285
- Specifies that a class uses a discriminator. You can set a custom
287286
discriminator key and value.
288287

289288
* - ``BsonRepresentation``
290-
- Specify a BSON type to store when different from the POJO property.
289+
- Specifies the BSON type used to store the value when different from the
290+
POJO property.
291291

292292
* - ``BsonId``
293293
- Marks a property to serialize as the _id property.

0 commit comments

Comments
 (0)
0