ID - the type of the primary key@MappedSuperclass public abstract class AbstractEntity<ID> extends Object implements Serializable
| Constructor and Description |
|---|
AbstractEntity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Basic equals function.
|
abstract ID |
getId() |
Integer |
getVersion() |
int |
hashCode()
Basic hash code function - uses the ID.
|
abstract void |
setId(ID id) |
void |
setVersion(Integer version) |
public abstract ID getId()
public abstract void setId(ID id)
public Integer getVersion()
public void setVersion(Integer version)
public int hashCode()
Copyright © 2017 Open Circle Solutions. All rights reserved.