From 9d185596d4f90fd1a41df26376231724fbb2d82a Mon Sep 17 00:00:00 2001 From: jamal-khey Date: Wed, 18 Oct 2023 15:36:21 +0200 Subject: [PATCH] fix code review comments Signed-off-by: jamal-khey --- .../modification/server/entities/ModificationEntity.java | 1 + .../server/entities/equipment/creation/LineCreationEntity.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gridsuite/modification/server/entities/ModificationEntity.java b/src/main/java/org/gridsuite/modification/server/entities/ModificationEntity.java index 90e5fac91..fe0c29fc4 100644 --- a/src/main/java/org/gridsuite/modification/server/entities/ModificationEntity.java +++ b/src/main/java/org/gridsuite/modification/server/entities/ModificationEntity.java @@ -62,6 +62,7 @@ protected ModificationEntity(ModificationInfos modificationInfos) { } //We need to limit the precision to avoid database precision storage limit issue (postgres has a precision of 6 digits while h2 can go to 9) this.date = ZonedDateTime.now(ZoneOffset.UTC).truncatedTo(ChronoUnit.MICROS); + this.setStashed(modificationInfos.getStashed()); } public ModificationInfos toModificationInfos() { diff --git a/src/main/java/org/gridsuite/modification/server/entities/equipment/creation/LineCreationEntity.java b/src/main/java/org/gridsuite/modification/server/entities/equipment/creation/LineCreationEntity.java index 37fcea764..9d38e1d52 100644 --- a/src/main/java/org/gridsuite/modification/server/entities/equipment/creation/LineCreationEntity.java +++ b/src/main/java/org/gridsuite/modification/server/entities/equipment/creation/LineCreationEntity.java @@ -48,7 +48,6 @@ public void update(ModificationInfos modificationInfos) { } private void assignAttributes(LineCreationInfos lineCreationInfos) { - setStashed(lineCreationInfos.getStashed()); shuntConductance1 = lineCreationInfos.getShuntConductance1(); shuntSusceptance1 = lineCreationInfos.getShuntSusceptance1(); shuntConductance2 = lineCreationInfos.getShuntConductance2();