Skip to content

Commit 103e697

Browse files
committed
Add box status history
1 parent 648a8b6 commit 103e697

4 files changed

Lines changed: 565 additions & 44 deletions

File tree

backend/src/main/java/com/apexgrid/transformertracker/model/Inspection.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ public class Inspection {
7979
@Column(name = "comment", columnDefinition = "text")
8080
private String comment;
8181

82+
// Per-box recent status (e.g., added/edited) aligned with boundingBoxes order
83+
@Column(name = "recentstatus", columnDefinition = "text")
84+
private String recentStatus;
85+
8286
// History of per-box severity arrays aligned with boundingBoxHistory/faultTypeHistory snapshots
8387
@Column(name = "severityhistory", columnDefinition = "text")
8488
private String severityHistory;
@@ -91,6 +95,10 @@ public class Inspection {
9195
@Column(name = "timestamphistory", columnDefinition = "text")
9296
private String timestampHistory;
9397

98+
// History of per-box recent statuses aligned with boundingBoxHistory snapshots
99+
@Column(name = "recentstatushistory", columnDefinition = "text")
100+
private String recentStatusHistory;
101+
94102

95103
public String getId() { return id; }
96104
public void setId(String id) { this.id = id; }
@@ -162,6 +170,9 @@ public class Inspection {
162170
public String getComment() { return comment; }
163171
public void setComment(String comment) { this.comment = comment; }
164172

173+
public String getRecentStatus() { return recentStatus; }
174+
public void setRecentStatus(String recentStatus) { this.recentStatus = recentStatus; }
175+
165176
public String getSeverityHistory() { return severityHistory; }
166177
public void setSeverityHistory(String severityHistory) { this.severityHistory = severityHistory; }
167178

@@ -170,4 +181,7 @@ public class Inspection {
170181

171182
public String getTimestampHistory() { return timestampHistory; }
172183
public void setTimestampHistory(String timestampHistory) { this.timestampHistory = timestampHistory; }
184+
185+
public String getRecentStatusHistory() { return recentStatusHistory; }
186+
public void setRecentStatusHistory(String recentStatusHistory) { this.recentStatusHistory = recentStatusHistory; }
173187
}

0 commit comments

Comments
 (0)