Annotation Interface MongoEntity
This annotation can be used to specify some configuration of the mapping of an entity to MongoDB.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe name of the MongoDB client (if not set the default client will be used).The name of the collection (if not set the name of the entity class will be used)The name of the database (if not set the default from the propertyquarkus.mongodb.database
will be used).Configures the read preference for the collection of this entity.
-
Element Details
-
collection
String collectionThe name of the collection (if not set the name of the entity class will be used)- Default:
- ""
-
database
String databaseThe name of the database (if not set the default from the propertyquarkus.mongodb.database
will be used).- Default:
- ""
-
clientName
String clientNameThe name of the MongoDB client (if not set the default client will be used).- Default:
- ""
-
readPreference
String readPreferenceConfigures the read preference for the collection of this entity. Supported values are:primary|primaryPreferred|secondary|secondaryPreferred|nearest
- Default:
- ""
-