Annotation Interface Document


Identifies a domain object to be persisted to Couchbase.
Author:
Michael Nitschinger, Andrey Rubtsov, Tigran Babloyan
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Same as durabilityLevel() but allows the actual value to be set using standard Spring property sources mechanism.
    com.couchbase.client.core.msg.kv.DurabilityLevel
    The optional durabilityLevel for all mutating operations, allows the application to wait until this replication (or persistence) is successful before proceeding
    int
    An optional expiry time for the document.
    Same as expiry() but allows the actual value to be set using standard Spring property sources mechanism.
    An optional time unit for the document's expiry(), if set.
    com.couchbase.client.java.kv.PersistTo
    How many persisted copies of the modified record must exist on the given document.
    com.couchbase.client.java.query.QueryScanConsistency
    An optional string indicating the query scan consistency
    com.couchbase.client.java.kv.ReplicateTo
    How many replicas must this documents operations be propagated to.
    boolean
    An optional flag associated with expiry() indicating whether the expiry timer should be reset whenever the document is directly read (eg. findByOne, findById).