mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
refactored the way entries and statuses are fetched
This commit is contained in:
@@ -14,6 +14,7 @@ import javax.persistence.OneToOne;
|
||||
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;
|
||||
@@ -53,6 +54,12 @@ public class FeedEntry extends AbstractModel {
|
||||
@OneToMany(mappedBy = "entry", cascade = CascadeType.REMOVE)
|
||||
private Set<FeedEntryStatus> statuses;
|
||||
|
||||
/**
|
||||
* useful placeholder for the subscription, not persisted
|
||||
*/
|
||||
@Transient
|
||||
private FeedSubscription subscription;
|
||||
|
||||
public String getGuid() {
|
||||
return guid;
|
||||
}
|
||||
@@ -125,4 +132,12 @@ public class FeedEntry extends AbstractModel {
|
||||
this.feedRelationships = feedRelationships;
|
||||
}
|
||||
|
||||
public FeedSubscription getSubscription() {
|
||||
return subscription;
|
||||
}
|
||||
|
||||
public void setSubscription(FeedSubscription subscription) {
|
||||
this.subscription = subscription;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user