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"/>