From 21404242bafa3817d4c7c2431c49f0a60fa433cf Mon Sep 17 00:00:00 2001 From: dankito Date: Fri, 23 Oct 2020 02:03:38 +0200 Subject: [PATCH] Temporarily commented out saving fints4k objects as Jackson doesn't serialize derived classes; losing therefore many information, leading to incorrect results --- .../kotlin/net/dankito/banking/fints4kBankingClient.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/fints4kBankingClient/src/commonMain/kotlin/net/dankito/banking/fints4kBankingClient.kt b/ui/fints4kBankingClient/src/commonMain/kotlin/net/dankito/banking/fints4kBankingClient.kt index 763f669f..f9ae256b 100644 --- a/ui/fints4kBankingClient/src/commonMain/kotlin/net/dankito/banking/fints4kBankingClient.kt +++ b/ui/fints4kBankingClient/src/commonMain/kotlin/net/dankito/banking/fints4kBankingClient.kt @@ -211,9 +211,10 @@ open class fints4kBankingClient( protected open fun saveData() { try { - val clientDataFile = getFints4kClientDataFile(fintsBank.bankCode, fintsBank.customerId) - - serializer.serializeObject(fintsBank, clientDataFile) + // TODO: fix that real (child) class get serialized and re-enable again +// val clientDataFile = getFints4kClientDataFile(fintsBank.bankCode, fintsBank.customerId) +// +// serializer.serializeObject(fintsBank, clientDataFile) } catch (e: Exception) { log.error(e) { "Could not save bank data for $fintsBank" } }