mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
delete old statuses
This commit is contained in:
@@ -11,6 +11,7 @@ import javax.persistence.ManyToOne;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
import org.hibernate.annotations.Cache;
|
||||
import org.hibernate.annotations.CacheConcurrencyStrategy;
|
||||
@@ -34,6 +35,9 @@ public class FeedEntryStatus extends AbstractModel {
|
||||
private boolean read;
|
||||
private boolean starred;
|
||||
|
||||
@Transient
|
||||
private boolean markable;
|
||||
|
||||
/**
|
||||
* Denormalization starts here
|
||||
*/
|
||||
@@ -52,7 +56,8 @@ public class FeedEntryStatus extends AbstractModel {
|
||||
|
||||
}
|
||||
|
||||
public FeedEntryStatus(User user, FeedSubscription subscription, FeedEntry entry) {
|
||||
public FeedEntryStatus(User user, FeedSubscription subscription,
|
||||
FeedEntry entry) {
|
||||
setUser(user);
|
||||
setSubscription(subscription);
|
||||
setEntry(entry);
|
||||
@@ -116,4 +121,12 @@ public class FeedEntryStatus extends AbstractModel {
|
||||
this.user = user;
|
||||
}
|
||||
|
||||
public boolean isMarkable() {
|
||||
return markable;
|
||||
}
|
||||
|
||||
public void setMarkable(boolean markable) {
|
||||
this.markable = markable;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user