new fetchedfeed class

This commit is contained in:
Athou
2013-04-25 12:30:21 +02:00
parent 3cbdbcc6f7
commit effa009241
6 changed files with 81 additions and 62 deletions

View File

@@ -10,7 +10,6 @@ import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
import org.hibernate.annotations.Index;
@@ -31,25 +30,6 @@ public class Feed extends AbstractModel {
@Index(name = "urlHash_index")
private String urlHash;
/**
* title of the feed, used only when fetching, not stored
*/
@Transient
private String title;
/**
* time it took to fetch the feed, used only when fetching, not stored
*/
@Transient
private long fetchDuration;
/**
* extracted published date from the feed, used only when fetching, not
* stored
*/
@Transient
private Date publishedDate;
/**
* The url of the website, extracted from the feed
*/
@@ -138,14 +118,6 @@ public class Feed extends AbstractModel {
this.subscriptions = subscriptions;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getLink() {
return link;
}
@@ -194,22 +166,6 @@ public class Feed extends AbstractModel {
this.etagHeader = etagHeader;
}
public long getFetchDuration() {
return fetchDuration;
}
public void setFetchDuration(long fetchDuration) {
this.fetchDuration = fetchDuration;
}
public Date getPublishedDate() {
return publishedDate;
}
public void setPublishedDate(Date publishedDate) {
this.publishedDate = publishedDate;
}
public Date getLastUpdateSuccess() {
return lastUpdateSuccess;
}