Modifier and Type | Field and Description |
---|---|
private Id<?> |
id |
private Long |
primaryKey |
private long |
version |
PROPERTY_NAME_ID
Constructor and Description |
---|
AbstractEntity() |
Modifier and Type | Method and Description |
---|---|
private Class<? extends AbstractEntity> |
getEntityClass() |
Id<?> |
getId() |
Long |
getPrimaryKey() |
long |
getVersion() |
void |
setId(Id<?> id) |
void |
setPrimaryKey(Long primaryKey) |
void |
setVersion(long version) |
private transient Id<?> id
private Long primaryKey
private long version
public Long getPrimaryKey()
public void setPrimaryKey(Long primaryKey)
primaryKey
- is the primaryKey to setpublic long getVersion()
modification counter
.public void setVersion(long version)
version
- the new version
.public Id<?> getId()
private Class<? extends AbstractEntity> getEntityClass()
Copyright © 2001–2016 mmm-Team. All rights reserved.