Skip to content

Commit 8147f0c

Browse files
Fix entity defaults
1 parent 640009e commit 8147f0c

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

src/main/java/org/gridsuite/shortcircuit/server/entities/AnalysisParametersEntity.java

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,21 @@ public AnalysisParametersEntity(boolean withLimitViolations, boolean withVoltage
3636
@Column(name = "id")
3737
private UUID id;
3838

39+
@Builder.Default
3940
@Column(name = "withLimitViolations", columnDefinition = "boolean default true")
40-
private boolean withLimitViolations;
41+
private boolean withLimitViolations = true;
4142

43+
@Builder.Default
4244
@Column(name = "withVoltageResult", columnDefinition = "boolean default true")
43-
private boolean withVoltageResult;
45+
private boolean withVoltageResult = true;
4446

47+
@Builder.Default
4548
@Column(name = "withFortescueResult", columnDefinition = "boolean default true")
46-
private boolean withFortescueResult;
49+
private boolean withFortescueResult = true;
4750

51+
@Builder.Default
4852
@Column(name = "withFeederResult", columnDefinition = "boolean default true")
49-
private boolean withFeederResult;
53+
private boolean withFeederResult = true;
5054

5155
@Column(name = "studyType")
5256
@Enumerated(EnumType.STRING)
@@ -59,17 +63,21 @@ public AnalysisParametersEntity(boolean withLimitViolations, boolean withVoltage
5963
@Enumerated(EnumType.STRING)
6064
private ShortCircuitPredefinedConfiguration predefinedParameters;
6165

66+
@Builder.Default
6267
@Column(name = "withLoads", columnDefinition = "boolean default false")
63-
private boolean withLoads;
68+
private boolean withLoads = false;
6469

70+
@Builder.Default
6571
@Column(name = "withShuntCompensators", columnDefinition = "boolean default false")
66-
private boolean withShuntCompensators;
72+
private boolean withShuntCompensators = false;
6773

74+
@Builder.Default
6875
@Column(name = "withVscConverterStations", columnDefinition = "boolean default true")
69-
private boolean withVscConverterStations;
76+
private boolean withVscConverterStations = true;
7077

78+
@Builder.Default
7179
@Column(name = "withNeutralPosition", columnDefinition = "boolean default true")
72-
private boolean withNeutralPosition;
80+
private boolean withNeutralPosition = true;
7381

7482
@Column(name = "initialVoltageProfileMode")
7583
@Enumerated(EnumType.STRING)

0 commit comments

Comments
 (0)