|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
I - The id property classpublic interface Entity<I extends Serializable>
This interface should be implemented by all entity objects.
An entity is an object whose identity does not come from its attributes but from an independent identification schema
In our case the identification schema is a particular property called "id" whose class is a generic parameter of this interface.
The id property is the identifier for objects that implements this interface so equals and hashCode methods must be implemented so to use this property to accomplish their job
For details on entity objects see Eric Evans, Domain Driven Design [Addison Wesley] Ch. 4
| Method Summary | |
|---|---|
I |
getId()
Returns this entity object identifier. |
void |
setId(I id)
Sets this entity object identifier. |
| Method Detail |
|---|
I getId()
void setId(I id)
id - the identifier to be set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||