use mysql instead of postgresql

This commit is contained in:
Athou
2013-03-23 01:15:35 +01:00
parent e779e1ff67
commit 04dd70e627
3 changed files with 23 additions and 13 deletions

View File

@@ -12,9 +12,6 @@ import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.codec.binary.StringUtils;
@Entity
@Table(name = "FEEDENTRIES")
@SuppressWarnings("serial")
@@ -39,15 +36,6 @@ public class FeedEntry implements Serializable {
@Temporal(TemporalType.TIMESTAMP)
private Date updated;
public String getContent() {
return StringUtils.newStringUtf8(Base64.decodeBase64(content));
}
public void setContent(String content) {
this.content = Base64.encodeBase64String(StringUtils
.getBytesUtf8(content));
}
public String getGuid() {
return guid;
}
@@ -64,6 +52,14 @@ public class FeedEntry implements Serializable {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getUrl() {
return url;
}