You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by my...@apache.org on 2018/01/22 15:28:51 UTC
[fineract-cn-deposit-account-management] 18/23: delete commands
when deleting product definition
This is an automated email from the ASF dual-hosted git repository.
myrle pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract-cn-deposit-account-management.git
commit 8bf7d2bd765682f7e05479e3ea24414ab44cee37
Author: mgeiss <mg...@mifos.org>
AuthorDate: Mon Jun 26 16:28:51 2017 +0200
delete commands when deleting product definition
---
.../service/internal/command/handler/ProductDefinitionAggregate.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/service/src/main/java/io/mifos/deposit/service/internal/command/handler/ProductDefinitionAggregate.java b/service/src/main/java/io/mifos/deposit/service/internal/command/handler/ProductDefinitionAggregate.java
index 4afe8c9..690641e 100644
--- a/service/src/main/java/io/mifos/deposit/service/internal/command/handler/ProductDefinitionAggregate.java
+++ b/service/src/main/java/io/mifos/deposit/service/internal/command/handler/ProductDefinitionAggregate.java
@@ -207,6 +207,10 @@ public class ProductDefinitionAggregate {
if (optionalProductDefinition.isPresent()) {
final ProductDefinitionEntity productDefinitionEntity = optionalProductDefinition.get();
+ this.productDefinitionCommandRepository.delete(
+ this.productDefinitionCommandRepository.findByProductDefinition(productDefinitionEntity)
+ );
+
this.currencyRepository.delete(productDefinitionEntity.getCurrency());
this.termRepository.delete(productDefinitionEntity.getTerm());
this.chargeRepository.delete(productDefinitionEntity.getCharges());
--
To stop receiving notification emails like this one, please contact
myrle@apache.org.