Files
Athou_commafeed/src/main/java/com/commafeed/backend/model/FeedEntry.java

85 lines
1.4 KiB
Java
Raw Normal View History

2013-03-23 16:17:19 +01:00
package com.commafeed.backend.model;
2013-03-20 20:33:42 +01:00
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
@Entity
@Table(name = "FEEDENTRIES")
2013-03-21 08:55:53 +01:00
@SuppressWarnings("serial")
2013-03-23 01:49:39 +01:00
public class FeedEntry extends AbstractModel {
2013-03-20 20:33:42 +01:00
@Column(length = 2048)
private String guid;
@ManyToOne
private Feed feed;
@Column(length = 256)
private String title;
@Lob
private String content;
@Column(length = 2048)
private String url;
@Temporal(TemporalType.TIMESTAMP)
private Date updated;
public String getGuid() {
return guid;
}
public void setGuid(String guid) {
this.guid = guid;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
2013-03-23 01:15:35 +01:00
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
2013-03-20 20:33:42 +01:00
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public Date getUpdated() {
return updated;
}
public void setUpdated(Date updated) {
this.updated = updated;
}
public Feed getFeed() {
return feed;
}
public void setFeed(Feed feed) {
this.feed = feed;
}
}