Skip to content
Permalink
Browse files
fixed missing customer identifier
  • Loading branch information
mgeiss committed Jun 14, 2017
1 parent 7ca53ac commit b4bfdc176dc7f61fc18899b383ef88c3ed5412e0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
@@ -30,6 +30,7 @@ public static TellerTransaction map(final TellerTransactionEntity tellerTransact
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 static TellerTransactionEntity map(final TellerTransaction tellerTransact
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());
@@ -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 void setTransactionDate(final LocalDateTime transactionDate) {
this.transactionDate = transactionDate;
}

public String getCustomerIdentifier() {
return this.customerIdentifier;
}

public void setCustomerIdentifier(final String customerIdentifier) {
this.customerIdentifier = customerIdentifier;
}

public String getProductIdentifier() {
return this.productIdentifier;
}
@@ -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,

0 comments on commit b4bfdc1

Please sign in to comment.