index hashes

This commit is contained in:
Athou
2013-04-14 18:28:48 +02:00
parent 0b96f5f95b
commit 86edd54a21
6 changed files with 60 additions and 4 deletions

View File

@@ -21,12 +21,22 @@ import com.google.common.collect.Sets;
@SuppressWarnings("serial")
public class Feed extends AbstractModel {
/**
* The url of the feed
*/
@Column(length = 2048, nullable = false)
private String url;
@Column(length = 40, nullable = false)
@Index(name = "urlHash_index")
private String urlHash;
@Transient
private String title;
/**
* The url of the website, extracted from the feed
*/
@Column(length = 2048)
private String link;
@@ -129,4 +139,12 @@ public class Feed extends AbstractModel {
this.disabledUntil = disabledUntil;
}
public String getUrlHash() {
return urlHash;
}
public void setUrlHash(String urlHash) {
this.urlHash = urlHash;
}
}