gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] 01/07: DB: making Ebics subscriber point at bank accounts.


From: gnunet
Subject: [libeufin] 01/07: DB: making Ebics subscriber point at bank accounts.
Date: Tue, 29 Jun 2021 15:59:12 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

commit db3e71086c47654b0df31a10606223cb49661d3c
Author: ms <ms@taler.net>
AuthorDate: Tue Jun 29 11:26:48 2021 +0200

    DB: making Ebics subscriber point at bank accounts.
    
    This reverts the fashion of having bank accounts pointing
    at Ebics subscribers.  This way, a bank account can be pointed
    at by Ebics, or Web, or FinTS (, ..) utilizers without relying
    on any polimorphism.
---
 sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
index 1cc38fd..b6f42c0 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
@@ -133,6 +133,9 @@ object EbicsSubscribersTable : IntIdTable() {
     val authenticationKey = reference("authorizationKey", 
EbicsSubscriberPublicKeysTable).nullable()
     val nextOrderID = integer("nextOrderID")
     val state = enumeration("state", SubscriberState::class)
+    // setting as nullable to integrate this change more seamlessly into the 
current
+    // implementation.  Can be removed eventually.
+    val bankAccount = reference("bankAccount", BankAccountsTable).nullable()
 }
 
 class EbicsSubscriberEntity(id: EntityID<Int>) : IntEntity(id) {
@@ -147,6 +150,7 @@ class EbicsSubscriberEntity(id: EntityID<Int>) : 
IntEntity(id) {
     var authenticationKey by EbicsSubscriberPublicKeyEntity 
optionalReferencedOn EbicsSubscribersTable.authenticationKey
     var nextOrderID by EbicsSubscribersTable.nextOrderID
     var state by EbicsSubscribersTable.state
+    var bankAccount by BankAccountEntity optionalReferencedOn 
EbicsSubscribersTable.bankAccount
 }
 
 /**
@@ -285,7 +289,6 @@ object BankAccountsTable : IntIdTable() {
     val bic = text("bic")
     val name = text("name")
     val label = text("label").uniqueIndex("accountLabelIndex")
-    val subscriber = reference("subscriber", EbicsSubscribersTable)
     val currency = text("currency")
 }
 
@@ -296,7 +299,6 @@ class BankAccountEntity(id: EntityID<Int>) : IntEntity(id) {
     var bic by BankAccountsTable.bic
     var name by BankAccountsTable.name
     var label by BankAccountsTable.label
-    var subscriber by EbicsSubscriberEntity referencedOn 
BankAccountsTable.subscriber
     var currency by BankAccountsTable.currency
 }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]