Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class ModificationEntity {
@Column(name = "message_values")
private String messageValues;

@Column(name = "activated")
@Column(name = "activated", columnDefinition = "boolean default true")
private Boolean activated = true;

public ModificationEntity(UUID id, String type, Instant date, Boolean stashed, Boolean activated, String messageType, String messageValues) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ public class BalancesAdjustmentEntity extends ModificationEntity {
@Enumerated(EnumType.STRING)
private LoadFlowParameters.BalanceType balanceType = DEFAULT_BALANCE_TYPE;

@Column(name = "with_load_flow")
@Column(name = "with_load_flow", columnDefinition = "boolean default " + DEFAULT_WITH_LOAD_FLOW)
private boolean withLoadFlow = DEFAULT_WITH_LOAD_FLOW;

@Column(name = "load_flow_parameters_id")
private UUID loadFlowParametersId;

@Column(name = "with_ratio_tap_changers")
@Column(name = "with_ratio_tap_changers", columnDefinition = "boolean default " + DEFAULT_WITH_RATIO_TAP_CHANGERS)
private boolean withRatioTapChangers = DEFAULT_WITH_RATIO_TAP_CHANGERS;

@Column(name = "subtract_load_flow_balancing")
@Column(name = "subtract_load_flow_balancing", columnDefinition = "boolean default " + DEFAULT_SUBTRACT_LOAD_FLOW_BALANCING)
private boolean subtractLoadFlowBalancing = DEFAULT_SUBTRACT_LOAD_FLOW_BALANCING;

@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.LAZY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ public class GenerationDispatchEntity extends ModificationEntity {
private List<GeneratorsFilterEmbeddable> generatorsWithFixedSupply;

@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.LAZY)
@OrderColumn(name = "pos_generators_frequency")
@OrderColumn(name = "pos_generators_frequency", nullable = false, columnDefinition = "integer default 0")
private List<GeneratorsFrequencyReserveEntity> generatorsFrequencyReserve;

@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.LAZY)
@OrderColumn(name = "pos_generators_ordering")
@OrderColumn(name = "pos_generators_ordering", nullable = false, columnDefinition = "integer default 0")
private List<GeneratorsOrderingEntity> generatorsOrdering;

public GenerationDispatchEntity(@NotNull GenerationDispatchInfos generationDispatchInfos) {
Expand Down