Interface RevisionedEntity<ID>

    • Method Detail

      • getRevision

        Number getRevision()
        This method gets the revision of this entity. The latest revision of an entity will always return null. Otherwise this object is a historic entity and it will be read-only so modifications are NOT permitted.
        Returns:
        the revision or LATEST_REVISION (null) if this is the latest revision.
      • setRevision

        void setRevision​(Number revision)
        This method sets the revision of this entity.
        ATTENTION:
        This operation should only be used in specific cases and if you are aware of what you are doing as this attribute is managed by the persistence. However, for final freedom we decided to add this method to the API (e.g. to copy from transfer-object to persistent-entity and vice-versa).
        Parameters:
        revision - is the new value of getRevision().