libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 7d17525367302bfaa14577dcc76685f178e1a2e4
parent c4a5053ab0a56936ce19b2b0d2b67b9b26da9c7f
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Tue, 18 Feb 2020 22:27:10 +0100

use auto-increment method

Diffstat:
Mnexus/src/main/kotlin/tech/libeufin/nexus/DB.kt | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt @@ -58,12 +58,12 @@ const val ID_MAX_LENGTH = 50 //} object Pain001Table : IntIdTableWithAmount() { - val msgId = integer("msgId").uniqueIndex() - val paymentId = integer("paymentId").uniqueIndex() // id for this system + val msgId = integer("msgId").uniqueIndex().autoIncrement() + val paymentId = integer("paymentId").uniqueIndex().autoIncrement() // id for this system val date = date("fileDate") val sum = amount("sum") val debtorAccount = text("debtorAccount") - val endToEndId = integer("EndToEndId").uniqueIndex() // id for this and the creditor system + val endToEndId = integer("EndToEndId").uniqueIndex().autoIncrement() // id for this and the creditor system val subject = text("subject") val creditorIban = text("creditorIban") val creditorBic = text("creditorBic")