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

88 lines
1.5 KiB
Java
Raw Normal View History

2013-03-20 20:33:42 +01:00
package com.commafeed.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
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-20 20:33:42 +01:00
public class FeedEntry implements Serializable {
@Id
@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;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
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;
}
}