gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: use less generic name


From: gnunet
Subject: [libeufin] branch master updated: use less generic name
Date: Sat, 11 Jan 2020 09:59:35 +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 d7ed097  use less generic name
d7ed097 is described below

commit d7ed09726e13df4c8ef950ad29494795d11f81f9
Author: Marcello Stanisci <address@hidden>
AuthorDate: Sat Jan 11 09:59:28 2020 +0100

    use less generic name
---
 sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt   | 7 +++----
 sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 4 ++--
 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 79a6aca..95acb95 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
@@ -152,7 +152,6 @@ open class IntIdTableWithAmount : IntIdTable() {
     }
 }
 
-
 object BankTransactionsTable : IntIdTableWithAmount() {
 
     /* Using varchar to store the IBAN - or possibly other formats
@@ -188,12 +187,12 @@ class BankTransactionEntity(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 customerName = varchar("customerName", CUSTOMER_NAME_MAX_LENGTH)
 }
 
 class BankCustomerEntity(id: EntityID<Int>) : IntEntity(id) {
     companion object : IntEntityClass<BankCustomerEntity>(BankCustomersTable)
-    var name by BankCustomersTable.name
+    var customerName by BankCustomersTable.customerName
 }
 
 
@@ -368,8 +367,8 @@ fun dbCreateTables() {
     transaction {
         addLogger(StdOutSqlLogger)
         SchemaUtils.create(
-            BankTransactionsTable,
             BankCustomersTable,
+            BankTransactionsTable,
             EbicsSubscribersTable,
             EbicsHostsTable,
             EbicsDownloadTransactionsTable,
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index f983f31..39f64ff 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -143,7 +143,7 @@ fun sampleData() {
 
         val customerEntity = BankCustomerEntity.new {
             addLogger(StdOutSqlLogger)
-            name = "Mina"
+            customerName = "Mina"
         }
 
         LOGGER.debug("Creating customer number: ${customerEntity.id}")
@@ -269,7 +269,7 @@ fun main() {
 
                 call.respond(
                     CustomerBalance(
-                    name = customer.name,
+                    name = customer.customerName,
                     balance = "${balance} EUR"
                     )
                 )

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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