package gr.iti.mklab.framework.common.domain.feeds;


import org.mongodb.morphia.annotations.Entity;

import gr.iti.mklab.framework.common.domain.JSONable;


@Entity(value="feeds", noClassnameStored=false)
public class Feed extends JSONable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -8972611573430977057L;

	protected long since;

	protected String source = null;
	
	protected String label;
	
	public Feed() {
		
	}
	
	public Feed(String id, long since, String source) {
		this.id = id;
		this.since = since;
		this.source = source;
	}
	
	public  String getId() {
		return id;
	}
	
	public  void setId(String id) {
		this.id = id;
	}
	
	public  String getLabel() {
		return label;
	}
	
	public  void setLabel(String label) {
		this.label = label;
	}
	
	public long getSinceDate() {
		return since;
	}
	
	public void setSinceDate(long since) {
		this.since = since;
	}
	
	public  String getSource() {
		return source;
	}
	
	public  void setSource(String source) {
		this.source = source;
	}
	
	@Override
	public int hashCode() {
		return id.hashCode();
	}
	
	@Override
	public boolean equals(Object obj) {

		if(this == obj) {
			return true;
		}
		
        return ((Feed) obj).id.equals(id);
    }
}

@@ -347,16 +347,46 @@
 since;%0A%0A
+%09protected long until = 0L;%0A%09%0A
 %09protect
@@ -908,32 +908,150 @@
 e = since;%0A%09%7D%0A%09%0A
+%09public long getUntilDate() %7B%0A%09%09return until;%0A%09%7D%0A%09%0A%09public void setUntilDate(long until) %7B%0A%09%09this.until = until;%0A%09%7D%0A%09%0A
 %09public  String 

Add until date in feed class