diff --git a/persistence/json/BankingPersistenceJson/src/main/kotlin/net/dankito/banking/persistence/mapper/EntitiesMapper.kt b/persistence/json/BankingPersistenceJson/src/main/kotlin/net/dankito/banking/persistence/mapper/EntitiesMapper.kt index 827e51f5..b00d1336 100644 --- a/persistence/json/BankingPersistenceJson/src/main/kotlin/net/dankito/banking/persistence/mapper/EntitiesMapper.kt +++ b/persistence/json/BankingPersistenceJson/src/main/kotlin/net/dankito/banking/persistence/mapper/EntitiesMapper.kt @@ -22,6 +22,7 @@ open class EntitiesMapper { ) mappedCustomer.id = customer.technicalId + mappedCustomer.userSetDisplayName = customer.userSetDisplayName mappedCustomer.accounts = mapBankAccounts(customer.accounts, mappedCustomer) @@ -40,6 +41,7 @@ open class EntitiesMapper { ) mappedCustomer.technicalId = customer.id + mappedCustomer.userSetDisplayName = customer.userSetDisplayName mappedCustomer.accounts = mapBankAccounts(customer.accounts, mappedCustomer) @@ -66,6 +68,7 @@ open class EntitiesMapper { ) mappedAccount.id = account.technicalId + mappedAccount.userSetDisplayName = account.userSetDisplayName mappedAccount.bookedTransactions = mapTransactions(account.bookedTransactions, mappedAccount) @@ -87,6 +90,7 @@ open class EntitiesMapper { ) mappedAccount.technicalId = account.id + mappedAccount.userSetDisplayName = account.userSetDisplayName mappedAccount.bookedTransactions = mapTransactions(account.bookedTransactions, mappedAccount) diff --git a/persistence/json/BankingPersistenceJson/src/main/kotlin/net/dankito/banking/persistence/model/BankAccountEntity.kt b/persistence/json/BankingPersistenceJson/src/main/kotlin/net/dankito/banking/persistence/model/BankAccountEntity.kt index 47a632c4..e03dc2b6 100644 --- a/persistence/json/BankingPersistenceJson/src/main/kotlin/net/dankito/banking/persistence/model/BankAccountEntity.kt +++ b/persistence/json/BankingPersistenceJson/src/main/kotlin/net/dankito/banking/persistence/model/BankAccountEntity.kt @@ -29,7 +29,8 @@ open class BankAccountEntity( open var supportsInstantPaymentMoneyTransfer: Boolean = false, open var bookedTransactions: List = listOf(), open var unbookedTransactions: List = listOf(), - open var id: String = UUID.random().toString() + open var id: String = UUID.random().toString(), + open var userSetDisplayName: String? = null ) { diff --git a/persistence/json/BankingPersistenceJson/src/main/kotlin/net/dankito/banking/persistence/model/CustomerEntity.kt b/persistence/json/BankingPersistenceJson/src/main/kotlin/net/dankito/banking/persistence/model/CustomerEntity.kt index 92c78047..1af860a1 100644 --- a/persistence/json/BankingPersistenceJson/src/main/kotlin/net/dankito/banking/persistence/model/CustomerEntity.kt +++ b/persistence/json/BankingPersistenceJson/src/main/kotlin/net/dankito/banking/persistence/model/CustomerEntity.kt @@ -22,7 +22,8 @@ open class CustomerEntity( var supportedTanProcedures: List = listOf(), var selectedTanProcedure: TanProcedure? = null, var tanMedia: List = listOf(), - var id: String = UUID.randomUUID().toString() + var id: String = UUID.randomUUID().toString(), + var userSetDisplayName: String? = null ) { internal constructor() : this("", "", "", "", "", "", "") // for object deserializers