org.janux.bus.persistence
Interface Versionable


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.

Since:
0.4
Author:
Philippe Paravicini

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

getDateUpdated

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.


setDateUpdated

void setDateUpdated(Date d)

getDateCreated

Date getDateCreated()
The timestamp at which this entity was first saved/persisted.


setDateCreated

void setDateCreated(Date d)


Copyright © 2005-2013 Janux. All Rights Reserved.