[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.
- [libeufin] branch master updated (62d0490 -> 786b70a), gnunet, 2021/06/29
- [libeufin] 05/07: drafting bank config table, gnunet, 2021/06/29
- [libeufin] 07/07: helper that returns a bank configuration, given the hostname., gnunet, 2021/06/29
- [libeufin] 06/07: CLI command to configure the Sandbox, gnunet, 2021/06/29
- [libeufin] 01/07: DB: making Ebics subscriber point at bank accounts.,
gnunet <=
- [libeufin] 02/07: Commenting out Jinja initialization., gnunet, 2021/06/29
- [libeufin] 03/07: Jinja and form-auth experiments, gnunet, 2021/06/29
- [libeufin] 04/07: drafting user creation, gnunet, 2021/06/29