Class SimpleEntityId
java.lang.Object
ch.tocco.nice2.persist.core.api.entity.SimpleEntityId
- All Implemented Interfaces:
Serializable
Value object that identifies an entity instance.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static SimpleEntityId
Creates a new SimpleEntityId for the passed, *existing* entity object.getKey()
int
hashCode()
toString()
-
Constructor Details
-
SimpleEntityId
-
-
Method Details
-
forEntity
Creates a new SimpleEntityId for the passed, *existing* entity object.- Throws:
IllegalArgumentException
- If the passed entity does not have a key (is in conception state).
-
getEntityName
-
getKey
-
equals
-
hashCode
public int hashCode() -
toString
-