public interface MongoDBEntityContext extends DocumentStoreEntityContext<MongoDBEntityContext,MongoDBPropertyContext>
| Modifier and Type | Method and Description |
|---|---|
MongoDBEntityContext |
associationDocumentStorage(AssociationDocumentType associationDocumentStorage)
Specifies how association documents should be persisted.
|
MongoDBEntityContext |
readPreference(ReadPreferenceType readPreference)
Defines the type of read preference to be applied when performing read operations against the datastore.
|
MongoDBEntityContext |
writeConcern(com.mongodb.WriteConcern writeConcern)
Specifies a custom
WriteConcern implementation to be applied when performing write operations for the
current entity. |
MongoDBEntityContext |
writeConcern(WriteConcernType writeConcern)
Defines the type of write concern to be applied when performing write operations for the current entity.
|
associationStorageentity, propertyMongoDBEntityContext writeConcern(WriteConcernType writeConcern)
writeConcern - the write concern typehttp://docs.mongodb.org/manual/core/write-concern/MongoDBEntityContext writeConcern(com.mongodb.WriteConcern writeConcern)
WriteConcern implementation to be applied when performing write operations for the
current entity. Either use this option or writeConcern(WriteConcernType) but not both at the same type.writeConcern - the write concernMongoDBEntityContext readPreference(ReadPreferenceType readPreference)
readPreference - the read preference typehttp://docs.mongodb.org/manual/core/read-preference/MongoDBEntityContext associationDocumentStorage(AssociationDocumentType associationDocumentStorage)
AssociationStorageType.ASSOCIATION_DOCUMENT.associationDocumentStorage - the association document type to be used when not configured the property levelCopyright © 2010-2014 Hibernate. All Rights Reserved.