ID
- Primary Key type.public abstract class AbstractEntity<ID extends Serializable> extends Object implements Entity<ID>
Modifier | Constructor and Description |
---|---|
protected |
AbstractEntity()
Contructor.
|
Modifier and Type | Method and Description |
---|---|
protected <T extends Entity<ID>> |
idEquals(Class<? extends T> type,
Object obj)
Checks if an object is an instance of an entity type and its id is equals to this entity id.
|
protected int |
idHashCode()
Returns the hash code of the id of the entity.
|
protected final <T extends Entity<ID>> T idEquals(Class<? extends T> type, Object obj)
type
- Entity type.obj
- Object to check.protected final int idHashCode()
Copyright © 2014 Derquinse Projects. All rights reserved.