commit 0e3508684d8e6f3d8bd56f18edb005ddd0208b16
parent cfd356517fe45c455281277e82acafed2765d9b7
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Thu, 26 Sep 2019 19:00:20 +0200
complete previous commit
Diffstat:
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/Main.kt
@@ -72,13 +72,9 @@ fun main() {
logger.info("name:: ->> " + body.name)
transaction {
- createSubscriber()
- }
-
- transaction {
BankCustomers.insert {
it[name] = body.name
- // it[ebicsSubscrber] = createSubscriber().id
+ it[ebicsSubscriber] = createSubscriber().id
}
}
diff --git a/src/main/kotlin/tech/libeufin/DB.kt b/src/main/kotlin/tech/libeufin/DB.kt
@@ -71,11 +71,11 @@ enum class KeyStates {
object BankCustomers: IntIdTable() {
// Customer ID is the default 'id' field provided by the constructor.
val name = varchar("name", CUSTOMER_NAME_MAX_LENGTH)
- // val ebicsSubscrber = reference("ebicsSubscriber", EbicsUsers)
+ val ebicsSubscriber = reference("ebicsSubscriber", EbicsUsers)
}
/**
- * The following three tables define IDs that make a EBCIS
+ * The following tables define IDs that make a EBCIS
* 'subscriber' exist. Each EBICS subscriber is the tuple:
*
* - UserID, the human who is performing a EBICS task.