Created
January 19, 2013 10:56
-
-
Save dagvadorj/4572007 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
@Entity | |
public class Employment extends Model implements RevisableModel<EmploymentRevision> { | |
private static final long serialVersionUID = 1L; | |
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) | |
private List<EmploymentRevision> revisions; | |
public Employment() { | |
revisions = new ArrayList<EmploymentRevision>(); | |
} | |
@Override | |
public List<EmploymentRevision> getRevisions() { | |
return revisions; | |
} | |
@Override | |
public void setRevisions(List<EmploymentRevision> revisions) { | |
this.revisions = revisions; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment