public interface DbEntity<ID>
| Modifier and Type | Method and Description |
|---|---|
default void |
detach()
Detaches entity by setting ID to
null. |
ID |
getEntityId()
Returns entity ID.
|
default boolean |
isPersistent()
Returns
true if entity is persisted. i.e. |
void |
setEntityId(ID id)
Sets the entity ID.
|
ID getEntityId()
null means that entity
is not stored in the persistence layer and that is in detached mode.void setEntityId(ID id)
default boolean isPersistent()
default void detach()
null.Copyright © 2003-present Jodd Team