Package org.bson.codecs.pojo
Class Conventions
java.lang.Object
org.bson.codecs.pojo.Conventions
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
The default Conventions
- Since:
- 3.5
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConventionDeprecated.The annotation convention.static final ConventionDeprecated.The default class and property conventions Sets the discriminator key if not set to_tand the discriminator value if not set to the ClassModels simple type name. Configures the PropertyModels.static final List<Convention> Deprecated.The default conventions liststatic final List<Convention> Deprecated.An empty conventions liststatic final ConventionDeprecated.A convention that sets the IdGenerator if the id property is either aObjectIdorBsonObjectId.static final ConventionDeprecated.A convention that enables private fields to be set using reflection.static final ConventionDeprecated.A convention that uses getter methods as setters for collections and maps if there is no setter. -
Method Summary
-
Field Details
-
CLASS_AND_PROPERTY_CONVENTION
Deprecated.The default class and property conventions- Sets the discriminator key if not set to
_tand the discriminator value if not set to the ClassModels simple type name. - Configures the PropertyModels. If the
idPropertyisn't set and there is a property namedgetId(),idor_idit will be marked as the idProperty.
- Sets the discriminator key if not set to
-
ANNOTATION_CONVENTION
Deprecated.The annotation convention.Applies all the conventions related to the default
org.bson.codecs.pojo.annotations. -
SET_PRIVATE_FIELDS_CONVENTION
Deprecated.A convention that enables private fields to be set using reflection.This convention mimics how some other JSON libraries directly set a private field when there is no setter.
Note: This convention is not part of the
DEFAULT_CONVENTIONSlist and must explicitly be set.- Since:
- 3.6
-
USE_GETTERS_FOR_SETTERS
Deprecated.A convention that uses getter methods as setters for collections and maps if there is no setter.This convention mimics how JAXB mutate collections and maps.
Note: This convention is not part of the
DEFAULT_CONVENTIONSlist and must explicitly be set.- Since:
- 3.6
-
OBJECT_ID_GENERATORS
Deprecated.A convention that sets the IdGenerator if the id property is either aObjectIdorBsonObjectId.- Since:
- 3.10
-
DEFAULT_CONVENTIONS
Deprecated.The default conventions list -
NO_CONVENTIONS
Deprecated.An empty conventions list
-