public class EntityWithVersion<E extends WithId> extends Object implements WithIdAndVersion
WithIdAndVersion.DefaultWithIdAndVersion| Modifier and Type | Field and Description |
|---|---|
protected E |
entity |
ID_COMPARATOR| Constructor and Description |
|---|
EntityWithVersion(E entity,
Long version) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
E |
getEntity() |
Long |
getId() |
Long |
getVersion() |
int |
hashCode() |
String |
toString() |
static <E extends WithId> |
withZeroVersion(E inputEntity) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitfromDocument, fromDocuments, ofpublic static <E extends WithId> EntityWithVersion<E> withZeroVersion(E inputEntity)
public Long getId()
public E getEntity()
public Long getVersion()
getVersion in interface WithIdAndVersionCopyright © 2002-2022 Atlassian. All Rights Reserved.