added user date hashmap to checklist

This commit is contained in:
Fredrik Friis 2012-04-12 13:39:07 +09:00
parent dbe3384788
commit cfe7e42f65

@ -4,8 +4,7 @@ import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
import java.util.*;
/**
*
@ -39,7 +38,18 @@ public class CheckList extends DomainObject {
@ManyToMany
private List<ChecklistCategory> categories = new ArrayList<ChecklistCategory>();
@ElementCollection(fetch=FetchType.EAGER)
private Map<User, Date> userLastOpenDate = new HashMap<User, Date>();
public Map<User, Date> getUserLastOpenDate() {
return userLastOpenDate;
}
public void setUserLastOpenDate(Map<User, Date> userLastOpenDate) {
this.userLastOpenDate = userLastOpenDate;
}
public CheckList() {
}