Annotation Interface BsonId


An annotation that configures the property as the id property for a ClassModel or a Java record.

For POJOs, requires the Conventions.ANNOTATION_CONVENTION

For Java records, the annotation is only supported on the record component.

Since:
3.5
See Also: