Package org.bson.codecs.pojo.annotations
Annotation Type BsonRepresentation
-
@Documented @Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface BsonRepresentation
An annotation that specifies what type the property is stored as in the database.Note: Requires the
Conventions.ANNOTATION_CONVENTION
- Since:
- 4.2
- See Also:
Conventions.ANNOTATION_CONVENTION
-
-
Element Detail
-
value
BsonType value
The type that the property is stored as in the database.- Returns:
- the type that the property should be stored as.
-
-