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 @@
-
+