@@ -0,0 +1,1072 @@
+package gr.iti.mklab.framework.common.domain;%0A%0Aimport org.mongodb.morphia.annotations.Entity;%0Aimport org.mongodb.morphia.annotations.Index;%0Aimport org.mongodb.morphia.annotations.Indexes;%0A%0A@Entity(value=%22ItemState%22, noClassnameStored=false)%0A@Indexes(%7B%0A%09@Index(%22id, -timestamp%22)%0A%7D)%0Apublic class ItemState extends JSONable %7B%0A%0A%09/**%0A%09 * %0A%09 */%0A%09private static final long serialVersionUID = -4721794425539829325L;%0A%09%0A%09public ItemState(String id) %7B%0A%09%09super.id = id;%0A%09%7D%0A%09%0A    public Long getTimestamp() %7B%0A%09%09return timestamp;%0A%09%7D%0A%0A%09public void setTimestamp(Long timestamp) %7B%0A%09%09this.timestamp = timestamp;%0A%09%7D%0A%0A%09public Long getLikes() %7B%0A%09%09return likes;%0A%09%7D%0A%0A%09public void setLikes(Long likes) %7B%0A%09%09this.likes = likes;%0A%09%7D%0A%0A%09public Long getShares() %7B%0A%09%09return shares;%0A%09%7D%0A%0A%09public void setShares(Long shares) %7B%0A%09%09this.shares = shares;%0A%09%7D%0A%0A%09public Long getComments() %7B%0A%09%09return comments;%0A%09%7D%0A%0A%09public void setComments(Long comments) %7B%0A%09%09this.comments = comments;%0A%09%7D%0A%0A%09protected Long timestamp;%0A    %0A    protected Long likes;%0A    %0A    protected Long shares;%0A    %0A    protected Long comments;%0A%7D%0A

Add ItemState