ID
- is the type of the primary key
.public interface MutableGenericEntity<ID> extends GenericEntity<ID>
GenericEntity
adding setter methods.Modifier and Type | Method and Description |
---|---|
void |
setId(ID id)
This method sets the
ID of this entity. |
void |
setModificationCounter(int version)
This method sets the
modification counter of this entity. |
getId, getModificationCounter
void setId(ID id)
ID
of this entity. GeneratedValue
and therefore 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).id
- is the new value of GenericEntity.getId()
.void setModificationCounter(int version)
modification counter
of this entity. version
- is the new value of GenericEntity.getModificationCounter()
.Copyright © 2001–2016 mmm-Team. All rights reserved.