rename field accordingly

This commit is contained in:
Athou
2024-07-14 20:26:30 +02:00
parent 1ce39a419e
commit fa197c33f1
7 changed files with 24 additions and 21 deletions

View File

@@ -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;

View File

@@ -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();
}
}