-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove previous values from table #568
Conversation
AtomicReference<Double> maxQ = new AtomicReference<>(Double.NaN); | ||
AtomicReference<Double> minQ = new AtomicReference<>(Double.NaN); | ||
if (!CollectionUtils.isEmpty(points)) { | ||
IntStream.range(0, modificationPoints.size()) | ||
.forEach(i -> { | ||
ReactiveCapabilityCurve.Point oldPoint = batteryPoints.get(i); | ||
ReactiveCapabilityCurveModificationInfos newPoint = modificationPoints.get(i); | ||
ReactiveCapabilityCurveCreationInfos newPoint = modificationPoints.get(i); | ||
Double oldMaxQ = Double.NaN; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to be cleaned
AtomicReference<Double> maxQ = new AtomicReference<>(Double.NaN); | ||
AtomicReference<Double> minQ = new AtomicReference<>(Double.NaN); | ||
if (!CollectionUtils.isEmpty(points)) { | ||
IntStream.range(0, modificationPoints.size()) | ||
.forEach(i -> { | ||
ReactiveCapabilityCurve.Point oldPoint = generatorPoints.get(i); | ||
ReactiveCapabilityCurveModificationInfos newPoint = modificationPoints.get(i); | ||
ReactiveCapabilityCurveCreationInfos newPoint = modificationPoints.get(i); | ||
Double oldMaxQ = Double.NaN; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to be cleaned
@@ -31,4 +34,18 @@ public class ReactiveCapabilityCurveCreationEmbeddable { | |||
|
|||
@Column | |||
private Double p; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class to be renamed to ReactiveCapabilityCurveEmbeddable ?
@@ -81,7 +81,7 @@ public class BatteryModificationEntity extends InjectionModificationEntity { | |||
|
|||
@ElementCollection | |||
@CollectionTable | |||
private List<ReactiveCapabilityCurveModificationEmbeddable> reactiveCapabilityCurvePoints; | |||
private List<ReactiveCapabilityCurveCreationEmbeddable> reactiveCapabilityCurvePoints; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to generate a liquibase changeset as you have fewer columns now
No description provided.