ID - is the type of the primary key.public interface RevisionedEntity<ID> extends GenericEntity<ID>
GenericEntity that is (potentially) revision-controlled. An instance of this
interface represents the revision of a GenericEntity. There are two cases to
distinguish:
latest revisionRevisionedEntity pointing to LATEST_REVISION represents the latest state of the entity and can be
modified.revisionrevision controlled, it has a history of modifications. A
RevisionedEntity can represent a historic revision out of this history. It therefore
is immutable so operations to modify the RevisionedEntity will typically fail. At least they can NOT be
written to the database.@Audited annotations. Also in case of
mmm-persistence you will notice this by looking at the DAO.| Modifier and Type | Field and Description |
|---|---|
static Number |
LATEST_REVISION
|
| Modifier and Type | Method and Description |
|---|---|
Number |
getRevision()
This method gets the revision of this entity.
|
getId, getModificationCounterstatic final Number LATEST_REVISION
Number getRevision()
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.LATEST_REVISION (null) if this is the latest revision.Copyright © 2001–2016 mmm-Team. All rights reserved.