Skip to content

Instantly share code, notes, and snippets.

@aleemstreak
Created February 26, 2014 21:44
Show Gist options
  • Save aleemstreak/9239274 to your computer and use it in GitHub Desktop.
Save aleemstreak/9239274 to your computer and use it in GitHub Desktop.
@Cached
public class Case extends SnapshottableEntity implements MailfooDataModel<Date> {
private static final long serialVersionUID = 1L;
@Id
private Long caseId;
@Parent
private Key<Organization> orgKey;
private Key<Workflow> workflowKey;
private Key<User> creatorKey;
private Date creationTimestamp;
private Date lastUpdatedTimestamp;
private Date lastEmailUpdatedTimestamp = null;
private Date lastStageChangeTimestamp = null;
private String name;
private String notes;
private List<Key<User>> assignedToKeys = null;
private List<SharingEntry> assignedToSharingEntries = null;
private String stageKey;
@Serialized
private Map<String, Object> fields = new HashMap<String, Object>();
private List<Key<User>> followerKeys = null;
private List<Key<Comment>> commentKeys = new ArrayList<Key<Comment>>();
private List<Key<Reminder>> reminderKeys = new ArrayList<Key<Reminder>>();
private List<Key<GmailThread>> gmailThreadKeys = new ArrayList<Key<GmailThread>>();
private List<Key<File>> fileKeys = new ArrayList<Key<File>>();
private List<Key<File>> driveFileKeys = new ArrayList<Key<File>>();
private List<Key<Case>> linkedCaseKeys = new ArrayList<>();
private List<String> emailAddresses = new ArrayList<String>();
private Date soonestReminderTimestamp = null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment