|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Versionable
Interface for implementing objects that expose the creation and last modification date of an entity. This information is useful for simple audits of the data, and the modification timestamp can be used for managing long transactions, for example by using the <version> optional hibernate attribute.
Method Summary | |
---|---|
Date |
getDateCreated()
The timestamp at which this entity was first saved/persisted. |
Date |
getDateUpdated()
Date on which this entity was last modified which can be used for a quick audit of the data on this table; this field can be used by the optional hibernate <version> element, for example, to indicate that the table contains versioned data, and is useful when using long transactions. |
void |
setDateCreated(Date d)
|
void |
setDateUpdated(Date d)
|
Method Detail |
---|
Date getDateUpdated()
void setDateUpdated(Date d)
Date getDateCreated()
void setDateCreated(Date d)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |