Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 966ba93

Browse files
fix: create foreign key constraint when tablePerHierarchy=false (#857)
1 parent 86040d5 commit 966ba93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

grails-datastore-gorm-hibernate5/src/main/groovy/org/grails/orm/hibernate/cfg/GrailsDomainBinder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,6 +1615,7 @@ protected void bindJoinedSubClass(HibernatePersistentEntity sub, JoinedSubclass
16151615
bindSimpleValue(identifier.getType().getName(), key, false, columnName, mappings);
16161616

16171617
joinedSubclass.createPrimaryKey();
1618+
joinedSubclass.createForeignKey();
16181619

16191620
// properties
16201621
createClassProperties(sub, joinedSubclass, mappings, sessionFactoryBeanName);

0 commit comments

Comments
 (0)