Package | Description |
---|---|
org.bson.codecs.pojo |
This package contains classes specific to mapping user POJOs.
|
Modifier and Type | Field and Description |
---|---|
static Convention |
Conventions.ANNOTATION_CONVENTION
The annotation convention.
|
static Convention |
Conventions.CLASS_AND_PROPERTY_CONVENTION
The default class and property conventions
Sets the discriminator key if not set to
_t and the discriminator value if not set to the
ClassModels simple type name.
Configures the PropertyModels. |
static Convention |
Conventions.SET_PRIVATE_FIELDS_CONVENTION
A convention that enables private fields to be set using reflection.
|
static Convention |
Conventions.USE_GETTERS_FOR_SETTERS
A convention that uses getter methods as setters for collections and maps if there is no setter.
|
Modifier and Type | Field and Description |
---|---|
static List<Convention> |
Conventions.DEFAULT_CONVENTIONS
The default conventions list
|
static List<Convention> |
Conventions.NO_CONVENTIONS
An empty conventions list
|
Modifier and Type | Method and Description |
---|---|
List<Convention> |
ClassModelBuilder.getConventions() |
Modifier and Type | Method and Description |
---|---|
ClassModelBuilder<T> |
ClassModelBuilder.conventions(List<Convention> conventions)
Sets the conventions to apply to the model
|
PojoCodecProvider.Builder |
PojoCodecProvider.Builder.conventions(List<Convention> conventions)
Sets the conventions to use when creating
ClassModels from classes or packages. |
Copyright © 2018. All rights reserved.