Package org.bson.codecs.pojo.annotations
Annotation Type BsonDiscriminator
-
@Inherited @Documented @Retention(RUNTIME) @Target(TYPE) public @interface BsonDiscriminator
An annotation that configures the discriminator key and value for a class.Note: Requires the
Conventions.ANNOTATION_CONVENTION
- Since:
- 3.5
- See Also:
Conventions.ANNOTATION_CONVENTION