From 466d074a9e786cb821dfc7f015d77fdee94503e5 Mon Sep 17 00:00:00 2001 From: Alejandro Revilla Date: Mon, 24 Dec 2018 14:05:28 -0300 Subject: [PATCH] =?UTF-8?q?kludge=20to=20handle=20Hibernate=E2=80=99s=20hb?= =?UTF-8?q?m=20incorrect=20generation=20of=20composite=20primary=20keys=20?= =?UTF-8?q?in=20certain=20conditions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug and work-around provided by @vsalaman - aka The Expert --- .../minigl/src/main/resources/org/jpos/gl/AccountLock.hbm.xml | 4 ++-- .../src/main/resources/org/jpos/gl/BalanceCache.hbm.xml | 4 ++-- .../minigl/src/main/resources/org/jpos/gl/Checkpoint.hbm.xml | 4 ++-- modules/minigl/src/main/resources/org/jpos/gl/Layer.hbm.xml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/minigl/src/main/resources/org/jpos/gl/AccountLock.hbm.xml b/modules/minigl/src/main/resources/org/jpos/gl/AccountLock.hbm.xml index a63b0b3c8d..f5e42a6809 100644 --- a/modules/minigl/src/main/resources/org/jpos/gl/AccountLock.hbm.xml +++ b/modules/minigl/src/main/resources/org/jpos/gl/AccountLock.hbm.xml @@ -28,9 +28,9 @@ + foreign-key="FKAccountLockJournal" column="journal"/> + foreign-key="FKAccountLockAccount" column="account" /> diff --git a/modules/minigl/src/main/resources/org/jpos/gl/BalanceCache.hbm.xml b/modules/minigl/src/main/resources/org/jpos/gl/BalanceCache.hbm.xml index 8a1047e53b..b759c64d94 100644 --- a/modules/minigl/src/main/resources/org/jpos/gl/BalanceCache.hbm.xml +++ b/modules/minigl/src/main/resources/org/jpos/gl/BalanceCache.hbm.xml @@ -25,9 +25,9 @@ + foreign-key="FKBalanceCacheJournal" column="journal" /> + foreign-key="FKBalanceCacheAccount" column="account" /> diff --git a/modules/minigl/src/main/resources/org/jpos/gl/Checkpoint.hbm.xml b/modules/minigl/src/main/resources/org/jpos/gl/Checkpoint.hbm.xml index 8f8a317fab..ee3632e3fc 100644 --- a/modules/minigl/src/main/resources/org/jpos/gl/Checkpoint.hbm.xml +++ b/modules/minigl/src/main/resources/org/jpos/gl/Checkpoint.hbm.xml @@ -30,9 +30,9 @@ + foreign-key="FKCheckpointJournal" column="journal" /> + foreign-key="FKCheckpointAccount" column="account" /> diff --git a/modules/minigl/src/main/resources/org/jpos/gl/Layer.hbm.xml b/modules/minigl/src/main/resources/org/jpos/gl/Layer.hbm.xml index ced0d999c9..fc25b3c92c 100644 --- a/modules/minigl/src/main/resources/org/jpos/gl/Layer.hbm.xml +++ b/modules/minigl/src/main/resources/org/jpos/gl/Layer.hbm.xml @@ -28,7 +28,7 @@ - +