public interface MongoDBGlobalContext extends DocumentStoreGlobalContext<MongoDBGlobalContext,MongoDBEntityContext>
| Modifier and Type | Method and Description |
|---|---|
MongoDBGlobalContext |
associationDocumentStorage(AssociationDocumentStorageType associationDocumentStorage)
Specifies how association documents should be persisted.
|
MongoDBGlobalContext |
readPreference(ReadPreferenceType readPreference)
Defines the type of read preference to be
applied when performing read operations against the datastore.
|
MongoDBGlobalContext |
writeConcern(com.mongodb.WriteConcern writeConcern)
Specifies a custom
WriteConcern implementation to be applied when performing write operations against the
datastore. |
MongoDBGlobalContext |
writeConcern(WriteConcernType writeConcern)
Defines the type of write concern to be applied
when performing write operations against the datastore.
|
associationStorage, mapStorageentityMongoDBGlobalContext writeConcern(WriteConcernType writeConcern)
writeConcern - the write concern typeMongoDBGlobalContext writeConcern(com.mongodb.WriteConcern writeConcern)
WriteConcern implementation to be applied when performing write operations against the
datastore. Either use this option or writeConcern(WriteConcernType) but not both at the same type.writeConcern - the write concernMongoDBGlobalContext readPreference(ReadPreferenceType readPreference)
readPreference - the read preference typeMongoDBGlobalContext associationDocumentStorage(AssociationDocumentStorageType associationDocumentStorage)
AssociationStorageType.ASSOCIATION_DOCUMENT.associationDocumentStorage - the association document type to be used when not configured on the entity or
property levelCopyright © 2010–2017 Hibernate. All rights reserved.