Created
January 19, 2013 10:52
-
-
Save dagvadorj/4571971 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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