Skip to content

Instantly share code, notes, and snippets.

@dagvadorj
Created January 19, 2013 10:52
Show Gist options
  • Save dagvadorj/4571971 to your computer and use it in GitHub Desktop.
Save dagvadorj/4571971 to your computer and use it in GitHub Desktop.
/**
* Base model for revision entities. It maintains effective date.
*
* @author Dagvadorj Galbadrakh
*
*/
@MappedSuperclass
public class RevisionModel extends Model implements Serializable {
private static final long serialVersionUID = 1L;
@Temporal(TemporalType.DATE)
private Date effectiveDate;
/*
* Getters and setters
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment