Skip to content

Commit

Permalink
fix: create foreign key constraint when tablePerHierarchy=false (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermocalvo committed Apr 4, 2024
1 parent 86040d5 commit 966ba93
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1615,6 +1615,7 @@ protected void bindJoinedSubClass(HibernatePersistentEntity sub, JoinedSubclass
bindSimpleValue(identifier.getType().getName(), key, false, columnName, mappings);

joinedSubclass.createPrimaryKey();
joinedSubclass.createForeignKey();

// properties
createClassProperties(sub, joinedSubclass, mappings, sessionFactoryBeanName);
Expand Down

0 comments on commit 966ba93

Please sign in to comment.