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:32:10 UTC
[fineract-cn-teller] 12/30: fixed missing customer identifier
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-teller.git
commit b4bfdc176dc7f61fc18899b383ef88c3ed5412e0
Author: mgeiss <mg...@mifos.org>
AuthorDate: Wed Jun 14 15:12:46 2017 +0200
fixed missing customer identifier
---
.../service/internal/mapper/TellerTransactionMapper.java | 2 ++
.../service/internal/repository/TellerTransactionEntity.java | 10 ++++++++++
.../main/resources/db/migrations/mariadb/V1__initial_setup.sql | 1 +
3 files changed, 13 insertions(+)
diff --git a/service/src/main/java/io/mifos/teller/service/internal/mapper/TellerTransactionMapper.java b/service/src/main/java/io/mifos/teller/service/internal/mapper/TellerTransactionMapper.java
index 1073219..9677376 100644
--- a/service/src/main/java/io/mifos/teller/service/internal/mapper/TellerTransactionMapper.java
+++ b/service/src/main/java/io/mifos/teller/service/internal/mapper/TellerTransactionMapper.java
@@ -30,6 +30,7 @@ public class TellerTransactionMapper {
tellerTransaction.setIdentifier(tellerTransactionEntity.getIdentifier());
tellerTransaction.setTransactionType(tellerTransactionEntity.getTransactionType());
tellerTransaction.setTransactionDate(DateConverter.toIsoString(tellerTransactionEntity.getTransactionDate()));
+ tellerTransaction.setCustomerIdentifier(tellerTransactionEntity.getCustomerIdentifier());
tellerTransaction.setProductIdentifier(tellerTransactionEntity.getProductIdentifier());
tellerTransaction.setProductCaseIdentifier(tellerTransactionEntity.getProductCaseIdentifier());
tellerTransaction.setCustomerAccountIdentifier(tellerTransactionEntity.getCustomerAccountIdentifier());
@@ -46,6 +47,7 @@ public class TellerTransactionMapper {
tellerTransactionEntity.setIdentifier(tellerTransaction.getIdentifier());
tellerTransactionEntity.setTransactionType(tellerTransaction.getTransactionType());
tellerTransactionEntity.setTransactionDate(DateConverter.fromIsoString(tellerTransaction.getTransactionDate()));
+ tellerTransactionEntity.setCustomerIdentifier(tellerTransaction.getCustomerIdentifier());
tellerTransactionEntity.setProductIdentifier(tellerTransaction.getProductIdentifier());
tellerTransactionEntity.setProductCaseIdentifier(tellerTransaction.getProductCaseIdentifier());
tellerTransactionEntity.setCustomerAccountIdentifier(tellerTransaction.getCustomerAccountIdentifier());
diff --git a/service/src/main/java/io/mifos/teller/service/internal/repository/TellerTransactionEntity.java b/service/src/main/java/io/mifos/teller/service/internal/repository/TellerTransactionEntity.java
index f880906..9d15e01 100644
--- a/service/src/main/java/io/mifos/teller/service/internal/repository/TellerTransactionEntity.java
+++ b/service/src/main/java/io/mifos/teller/service/internal/repository/TellerTransactionEntity.java
@@ -48,6 +48,8 @@ public class TellerTransactionEntity {
@Column(name = "transaction_date", nullable = false)
@Convert(converter = LocalDateTimeConverter.class)
private LocalDateTime transactionDate;
+ @Column(name = "customer_identifier", nullable = false, length = 32)
+ private String customerIdentifier;
@Column(name = "product_identifier", nullable = false, length = 32)
private String productIdentifier;
@Column(name = "product_case_identifier", nullable = true, length = 32)
@@ -107,6 +109,14 @@ public class TellerTransactionEntity {
this.transactionDate = transactionDate;
}
+ public String getCustomerIdentifier() {
+ return this.customerIdentifier;
+ }
+
+ public void setCustomerIdentifier(final String customerIdentifier) {
+ this.customerIdentifier = customerIdentifier;
+ }
+
public String getProductIdentifier() {
return this.productIdentifier;
}
diff --git a/service/src/main/resources/db/migrations/mariadb/V1__initial_setup.sql b/service/src/main/resources/db/migrations/mariadb/V1__initial_setup.sql
index 5b4556d..9f3a24b 100644
--- a/service/src/main/resources/db/migrations/mariadb/V1__initial_setup.sql
+++ b/service/src/main/resources/db/migrations/mariadb/V1__initial_setup.sql
@@ -39,6 +39,7 @@ CREATE TABLE tajet_teller_transactions (
identifier VARCHAR(32) NOT NULL,
transaction_type VARCHAR(32) NOT NULL,
transaction_date TIMESTAMP(3) NOT NULL,
+ customer_identifier VARCHAR(32) NOT NULL,
product_identifier VARCHAR(32) NOT NULL,
product_case_identifier VARCHAR(32) NULL,
customer_account_identifier VARCHAR(32) NOT NULL,
--
To stop receiving notification emails like this one, please contact
myrle@apache.org.