ID - The type of the entityId of the Entity.public abstract class BaseEntity<ID> extends Object implements Entity<ID>
equals() method based on the entity identity. This also enforce
the entity to valid, i.e. not null. Otherwise a SeedException will be thrown.| Constructor and Description |
|---|
BaseEntity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Entities compare by identity, not by attributes.
|
abstract ID |
getEntityId()
Gets the entity id.
|
int |
hashCode() |
String |
toString() |
public abstract ID getEntityId()
EntitygetEntityId in interface Entity<ID>public final int hashCode()
public final boolean equals(Object o)
EntityCopyright © 2013-2015–2015. All rights reserved.