Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 3114e19

Browse files
committed
SORMAS-Foundation#3163: Extending CampaignDiagramSeries with caption property
1 parent a647610 commit 3114e19

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

sormas-api/src/main/java/de/symeda/sormas/api/campaign/diagram/CampaignDiagramSeries.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public class CampaignDiagramSeries implements Serializable {
1414
private String referenceValue;
1515
private String stack;
1616
private AgeGroup populationGroup;
17+
private String caption;
1718

1819
public CampaignDiagramSeries() {
1920
}
@@ -57,6 +58,14 @@ public void setStack(String stack) {
5758
this.stack = stack;
5859
}
5960

61+
public String getCaption() {
62+
return caption;
63+
}
64+
65+
public void setCaption(String caption) {
66+
this.caption = caption;
67+
}
68+
6069
/**
6170
* Needed. Otherwise hibernate will persist whenever loading,
6271
* because hibernate types creates new instances that aren't equal.
@@ -72,6 +81,7 @@ public boolean equals(Object o) {
7281
&& Objects.equals(formId, that.formId)
7382
&& Objects.equals(referenceValue, that.referenceValue)
7483
&& Objects.equals(stack, that.stack)
84+
&& Objects.equals(caption, that.caption)
7585
&& Objects.equals(populationGroup, that.populationGroup);
7686
}
7787

@@ -85,6 +95,6 @@ public void setPopulationGroup(AgeGroup populationGroup) {
8595

8696
@Override
8797
public int hashCode() {
88-
return Objects.hash(fieldId, formId, referenceValue, stack, populationGroup);
98+
return Objects.hash(fieldId, formId, referenceValue, stack, caption, populationGroup);
8999
}
90100
}

0 commit comments

Comments
 (0)