public interface MongoDBPropertyContext extends DocumentStorePropertyContext<MongoDBEntityContext,MongoDBPropertyContext>
| Modifier and Type | Method and Description |
|---|---|
MongoDBPropertyContext |
associationDocumentStorage(AssociationDocumentStorageType 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.
|
associationStorage, mapStorageentity, propertyMongoDBPropertyContext writeConcern(WriteConcernType concern)
concern - the write concern typeMongoDBPropertyContext 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 typeMongoDBPropertyContext associationDocumentStorage(AssociationDocumentStorageType associationDocumentStorage)
AssociationStorageType.ASSOCIATION_DOCUMENT.associationDocumentStorage - the association document type to be used; overrides any settings on the entity
or global levelCopyright © 2010–2016 Hibernate. All rights reserved.