@MappedSuperclass public class AbstractEntity extends Object implements EntityInterface
| Constructor and Description |
|---|
AbstractEntity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Integer |
getId()
an entity should have at least an id
|
int |
getVersion() |
int |
hashCode() |
boolean |
isTransient()
is the entity in the db?
|
void |
setId(Integer id) |
void |
setVersion(int version) |
public Integer getId()
EntityInterfacegetId in interface EntityInterfacepublic void setId(Integer id)
public int getVersion()
public void setVersion(int version)
public boolean isTransient()
isTransient in interface EntityInterfaceCopyright © 2018 Fryske Akademy. All rights reserved.