mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
rename field accordingly
This commit is contained in:
@@ -46,10 +46,9 @@ public class FeedEntry extends AbstractModel {
|
||||
/**
|
||||
* the moment the entry was published in the feed
|
||||
*
|
||||
* TODO rename the field to published
|
||||
*/
|
||||
@Column
|
||||
private Instant updated;
|
||||
@Column(name = "updated")
|
||||
private Instant published;
|
||||
|
||||
@OneToMany(mappedBy = "entry", cascade = CascadeType.REMOVE)
|
||||
private Set<FeedEntryStatus> statuses;
|
||||
|
||||
@@ -50,8 +50,8 @@ public class FeedEntryStatus extends AbstractModel {
|
||||
@Column
|
||||
private Instant entryInserted;
|
||||
|
||||
@Column
|
||||
private Instant entryUpdated;
|
||||
@Column(name = "entryUpdated")
|
||||
private Instant entryPublished;
|
||||
|
||||
public FeedEntryStatus() {
|
||||
|
||||
@@ -62,7 +62,7 @@ public class FeedEntryStatus extends AbstractModel {
|
||||
this.subscription = subscription;
|
||||
this.entry = entry;
|
||||
this.entryInserted = entry.getInserted();
|
||||
this.entryUpdated = entry.getUpdated();
|
||||
this.entryPublished = entry.getPublished();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user