From ea27be24bc73b9c4a426fb1adc4fe154e04a46fe Mon Sep 17 00:00:00 2001 From: Alejandro Revilla Date: Thu, 30 Apr 2020 18:51:16 -0300 Subject: [PATCH] Add on-delete="cascade" to AcctLock, BalanceCache and Checkpoint --- .../src/main/resources/org/jpos/gl/AccountLock.hbm.xml | 5 ++--- .../src/main/resources/org/jpos/gl/BalanceCache.hbm.xml | 3 ++- .../minigl/src/main/resources/org/jpos/gl/Checkpoint.hbm.xml | 2 +- 3 files changed, 5 insertions(+), 5 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 f5e42a6809..03b37f92dd 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,10 +28,9 @@ + foreign-key="FKAccountLockJournal" column="journal" on-delete="cascade"/> + foreign-key="FKAccountLockAccount" column="account" on-delete="cascade" /> - 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 b759c64d94..c3bc09f4ea 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 @@ -27,7 +27,8 @@ + foreign-key="FKBalanceCacheAccount" column="account" on-delete="cascade"> + 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 ee3632e3fc..645580b241 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 @@ -32,7 +32,7 @@ + foreign-key="FKCheckpointAccount" column="account" on-delete="cascade"/>