Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xopenk-platform/openk-eisman-portlet/src/main/java/org/eclipse/openk/eisman/service/ReductionAdviceCalculatorService.java2
-rwxr-xr-xopenk-platform/openk-eisman-portlet/src/main/resources/dozer-mapping.xml8
-rwxr-xr-xopenk-platform/openk-eisman-portlet/src/test/resources/test-dozer-mapping.xml8
3 files changed, 13 insertions, 5 deletions
diff --git a/openk-platform/openk-eisman-portlet/src/main/java/org/eclipse/openk/eisman/service/ReductionAdviceCalculatorService.java b/openk-platform/openk-eisman-portlet/src/main/java/org/eclipse/openk/eisman/service/ReductionAdviceCalculatorService.java
index af302893..1985929d 100755
--- a/openk-platform/openk-eisman-portlet/src/main/java/org/eclipse/openk/eisman/service/ReductionAdviceCalculatorService.java
+++ b/openk-platform/openk-eisman-portlet/src/main/java/org/eclipse/openk/eisman/service/ReductionAdviceCalculatorService.java
@@ -125,7 +125,7 @@ public class ReductionAdviceCalculatorService extends AbstractReductionAdviceCal
}
activityJpa.setReductionAdviceNotFulfilled(sumOfReduction.compareTo(valueToBeReduced) == -1);
- //activityJpaService.removeSynchronousMachineAndSubstationNotReduced(activityJpa);
+ activityJpaService.removeSynchronousMachineAndSubstationNotReduced(activityJpa);
logCalculationEnd(sumOfReduction);
diff --git a/openk-platform/openk-eisman-portlet/src/main/resources/dozer-mapping.xml b/openk-platform/openk-eisman-portlet/src/main/resources/dozer-mapping.xml
index 3ae2aa9a..c8b4a26e 100755
--- a/openk-platform/openk-eisman-portlet/src/main/resources/dozer-mapping.xml
+++ b/openk-platform/openk-eisman-portlet/src/main/resources/dozer-mapping.xml
@@ -245,11 +245,11 @@
<a>childrenActivityJpaList[0].userSettingsJpa.geographicalRegion</a>
<b>geographicalRegion</b>
</field>
- <field>
+ <field copy-by-reference="true">
<a>childrenActivityJpaList[0].subGeographicalRegionJpaList</a>
<b>subGeographicalRegionJpaList</b>
</field>
- <field>
+ <field copy-by-reference="true">
<a>childrenActivityJpaList[0].substationJpaList</a>
<b>substationJpaList</b>
</field>
@@ -322,6 +322,10 @@
<a>preselectionConfigurationJpa</a>
<b>preselectionConfigurationDto</b>
</field>
+ <field copy-by-reference="true">
+ <a>substationJpaList</a>
+ <b>substationJpaList</b>
+ </field>
</mapping>
<mapping>
<class-a>org.eclipse.openk.eisman.model.jpa.process.PreselectionConfigurationJpa</class-a>
diff --git a/openk-platform/openk-eisman-portlet/src/test/resources/test-dozer-mapping.xml b/openk-platform/openk-eisman-portlet/src/test/resources/test-dozer-mapping.xml
index 1cf7f77e..01400deb 100755
--- a/openk-platform/openk-eisman-portlet/src/test/resources/test-dozer-mapping.xml
+++ b/openk-platform/openk-eisman-portlet/src/test/resources/test-dozer-mapping.xml
@@ -245,11 +245,11 @@
<a>childrenActivityJpaList[0].userSettingsJpa.geographicalRegion</a>
<b>geographicalRegion</b>
</field>
- <field>
+ <field copy-by-reference="true">
<a>childrenActivityJpaList[0].subGeographicalRegionJpaList</a>
<b>subGeographicalRegionJpaList</b>
</field>
- <field>
+ <field copy-by-reference="true">
<a>childrenActivityJpaList[0].substationJpaList</a>
<b>substationJpaList</b>
</field>
@@ -322,6 +322,10 @@
<a>preselectionConfigurationJpa</a>
<b>preselectionConfigurationDto</b>
</field>
+ <field copy-by-reference="true">
+ <a>substationJpaList</a>
+ <b>substationJpaList</b>
+ </field>
</mapping>
<mapping>
<class-a>org.eclipse.openk.eisman.model.jpa.process.PreselectionConfigurationJpa</class-a>

Back to the top