Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ghazwarhili committed Nov 19, 2024
1 parent ca05914 commit 40f52c0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class BatteryModificationEntity extends InjectionModificationEntity {
})
private BooleanModificationEmbedded reactiveCapabilityCurve;

@ElementCollection(fetch = FetchType.EAGER)
@ElementCollection
@CollectionTable
@OrderColumn(name = "pos_point")
private List<ReactiveCapabilityCurveModificationEmbeddable> reactiveCapabilityCurvePoints;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class ConverterStationModificationEntity extends InjectionModificationEnt
})
private DoubleModificationEmbedded voltageSetpoint;

@ElementCollection(fetch = FetchType.EAGER)
@ElementCollection
@CollectionTable(name = "converter_station_modification_rcc_points")
@OrderColumn(name = "pos_point")
private List<ReactiveCapabilityCurveModificationEmbeddable> reactiveCapabilityCurvePoints;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public class GeneratorModificationEntity extends InjectionModificationEntity {
})
private BooleanModificationEmbedded reactiveCapabilityCurve;

@ElementCollection(fetch = FetchType.EAGER)
@ElementCollection
@CollectionTable
@OrderColumn(name = "pos_point")
private List<ReactiveCapabilityCurveModificationEmbeddable> reactiveCapabilityCurvePoints;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.gridsuite.modification.server.dto.ReactiveCapabilityCurveModificationInfos;

/**
* @author Ayoub LABIDI <ayoub.labidi at rte-france.com>
Expand Down Expand Up @@ -40,15 +39,4 @@ public class ReactiveCapabilityCurveModificationEmbeddable {

@Column
private Double oldP;

public ReactiveCapabilityCurveModificationInfos toInfos() {
return ReactiveCapabilityCurveModificationInfos.builder()
.p(p)
.oldP(oldP)
.minQ(minQ)
.oldMinQ(oldMinQ)
.maxQ(maxQ)
.oldMaxQ(oldMaxQ)
.build();
}
}

0 comments on commit 40f52c0

Please sign in to comment.