[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: again on plural names for tables
From: |
gnunet |
Subject: |
[libeufin] branch master updated: again on plural names for tables |
Date: |
Mon, 02 Dec 2019 20:10:51 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new c4d994e again on plural names for tables
c4d994e is described below
commit c4d994e9611e378ea7cf099870c651fe20db22b6
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Dec 2 20:10:46 2019 +0100
again on plural names for tables
---
sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt | 10 +++++-----
sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 1 -
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
index e411b7d..0301087 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
@@ -100,10 +100,10 @@ object BalancesTable : IntIdTable() {
}
class BalanceEntity(id: EntityID<Int>) : IntEntity(id) {
- companion object : IntEntityClass<BalanceEntity>(BalanceTable)
+ companion object : IntEntityClass<BalanceEntity>(BalancesTable)
- var value by BalanceTable.value
- var fraction by BalanceTable.fraction
+ var value by BalancesTable.value
+ var fraction by BalancesTable.fraction
}
/**
@@ -113,7 +113,7 @@ class BalanceEntity(id: EntityID<Int>) : IntEntity(id) {
object BankCustomersTable : IntIdTable() {
// Customer ID is the default 'id' field provided by the constructor.
val name = varchar("name", CUSTOMER_NAME_MAX_LENGTH).primaryKey()
- val balance = reference("balance", BalanceTable)
+ val balance = reference("balance", BalancesTable)
}
class BankCustomerEntity(id: EntityID<Int>) : IntEntity(id) {
@@ -177,7 +177,7 @@ object EbicsSubscribersTable : IntIdTable() {
val nextOrderID = integer("nextOrderID")
val state = enumeration("state", SubscriberState::class)
- val balance = reference("balance", BalanceTable)
+ val balance = reference("balance", BalancesTable)
}
class EbicsSubscriberEntity(id: EntityID<Int>) : IntEntity(id) {
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index 6cb118d..9473d8d 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -125,7 +125,6 @@ fun main() {
nextOrderID = 1
}
-
BankCustomerEntity.new {
name = "Mina"
balance = BalanceEntity.new {
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: again on plural names for tables,
gnunet <=