[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 01/03: minor fix
From: |
gnunet |
Subject: |
[libeufin] 01/03: minor fix |
Date: |
Mon, 02 Dec 2019 20:08:55 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libeufin.
commit 1cd6cfec3779d5b62278021bbc5b8711f6bf7a5a
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Dec 2 18:33:13 2019 +0100
minor fix
---
sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
index 99b135b..37bd4b9 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
@@ -27,6 +27,7 @@ import org.jetbrains.exposed.sql.transactions.transaction
import java.sql.Blob
import java.sql.Connection
+
const val CUSTOMER_NAME_MAX_LENGTH = 20
const val EBICS_HOST_ID_MAX_LENGTH = 10
const val EBICS_USER_ID_MAX_LENGTH = 10
@@ -103,24 +104,23 @@ object BankCustomersTable : IntIdTable() {
class BankCustomerEntity(id: EntityID<Int>) : IntEntity(id) {
companion object : IntEntityClass<BankCustomerEntity>(BankCustomersTable)
var name by BankCustomersTable.name
- val balance by BalanceTable referencedOn BankCustomersTable.balance
+ var balance by BalanceEntity referencedOn BankCustomersTable.balance
}
object BalanceTable : IntIdTable() {
// Customer ID is the default 'id' field provided by the constructor.
- val value = int("value")
- val fraction = int("fraction") // from 0 to 99
+ val value = integer("value")
+ val fraction = integer("fraction") // from 0 to 99
}
class BalanceEntity(id: EntityID<Int>) : IntEntity(id) {
companion object : IntEntityClass<BankCustomerEntity>(BankCustomersTable)
- var balance by BalanceTable.balance
+ var value by BalanceTable.value
+ var fraction by BalanceTable.fraction
}
-
-
/**
* This table stores RSA public keys of subscribers.
*/
@@ -193,7 +193,7 @@ class EbicsSubscriberEntity(id: EntityID<Int>) :
IntEntity(id) {
var nextOrderID by EbicsSubscribersTable.nextOrderID
var state by EbicsSubscribersTable.state
- var balance by BalanceTable referencedOn EbicsSubscribersTable.balance
+ var balance by BalanceEntity referencedOn EbicsSubscribersTable.balance
}
--
To stop receiving notification emails like this one, please contact
address@hidden.