public interface Persistable extends Undoable
Although this interface must be public to allow implementation classes to implement it, it is intended that these methods not be invoked directly upon DMO implementation instances from outside the persistence framework.
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getId()
Get the database identifier for this persistable object.
|
void |
setId(java.lang.Long id)
Set the database identifier for this persistable object.
|
java.lang.Long getId()
null
for DMO instances which have not yet been persisted
to the database (or more accurately, associated with a Hibernate
session).void setId(java.lang.Long id)
id
- Unique, database identifier to be associated with this object.