@MappedSuperclass @Deprecated public abstract class AbstractPersistenceEntity extends Object implements MutablePersistenceEntity<Long>
MutablePersistenceEntity with a generated
primary key. In case you need a different type of key add it as extra column and make it
unique.| Modifier and Type | Field and Description |
|---|---|
private Long |
id
Deprecated.
|
private int |
modificationCounter
Deprecated.
|
private Number |
revision
Deprecated.
|
private static long |
serialVersionUID
Deprecated.
|
| Constructor and Description |
|---|
AbstractPersistenceEntity()
Deprecated.
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Long |
getId()
Deprecated.
|
int |
getModificationCounter()
Deprecated.
|
Number |
getRevision()
Deprecated.
|
void |
setId(Long id)
Deprecated.
|
void |
setModificationCounter(int version)
Deprecated.
|
void |
setRevision(Number revision)
Deprecated.
This method sets the
revision of this entity. |
String |
toString()
Deprecated.
|
protected void |
toString(StringBuilder buffer)
Deprecated.
Method to extend
toString() logic. |
private static final long serialVersionUID
private int modificationCounter
getModificationCounter()private Number revision
getRevision()public AbstractPersistenceEntity()
public Long getId()
public void setId(Long id)
setId in interface net.sf.mmm.util.entity.api.MutableGenericEntity<Long>public int getModificationCounter()
getModificationCounter in interface net.sf.mmm.util.entity.api.GenericEntity<Long>public void setModificationCounter(int version)
setModificationCounter in interface net.sf.mmm.util.entity.api.MutableGenericEntity<Long>public Number getRevision()
getRevision in interface net.sf.mmm.util.entity.api.RevisionedEntity<Long>public void setRevision(Number revision)
MutablePersistenceEntityrevision of this entity. setRevision in interface MutablePersistenceEntity<Long>revision - the revision to setprotected void toString(StringBuilder buffer)
toString() logic.buffer - is the StringBuilder where to append the string
representation.Copyright © 2014–2016 OASP-Team. All rights reserved.