public interface MongoDBPropertyContext extends DocumentStorePropertyContext<MongoDBEntityContext,MongoDBPropertyContext>
| Modifier and Type | Method and Description |
|---|---|
MongoDBPropertyContext |
associationDocumentStorage(AssociationDocumentType associationDocumentStorage)
Specifies how association documents should be persisted.
|
MongoDBPropertyContext |
readPreference(ReadPreferenceType readPreference)
Defines the type of read preference to be applied when performing read operations in case the current property
represents an association.
|
MongoDBPropertyContext |
writeConcern(com.mongodb.WriteConcern writeConcern)
Specifies a custom
WriteConcern implementation to be applied when performing write operations in case the
current property represents an association. |
MongoDBPropertyContext |
writeConcern(WriteConcernType concern)
Defines the type of write concern to be applied when performing write operations in case the current property
represents an association.
|
associationStorageentity, propertyMongoDBPropertyContext writeConcern(WriteConcernType concern)
concern - the write concern typehttp://docs.mongodb.org/manual/core/write-concern/MongoDBPropertyContext writeConcern(com.mongodb.WriteConcern writeConcern)
WriteConcern implementation to be applied when performing write operations in case the
current property represents an association. Otherwise the setting takes no effect.
Either use this option or writeConcern(WriteConcernType) but not both at the same type.
writeConcern - the write concernMongoDBPropertyContext readPreference(ReadPreferenceType readPreference)
readPreference - the read preference typehttp://docs.mongodb.org/manual/core/read-preference/MongoDBPropertyContext associationDocumentStorage(AssociationDocumentType associationDocumentStorage)
AssociationStorageType.ASSOCIATION_DOCUMENT.associationDocumentStorage - the association document type to be used; overrides any settings on the entity
or global levelCopyright © 2010-2014 Hibernate. All Rights Reserved.