File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
hibernate-core/src/main/java/org/hibernate/persister/entity Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -687,6 +687,15 @@ public AbstractEntityPersister(
687687 final ArrayList <String []> propColumnReaderTemplates = new ArrayList <>();
688688 final ArrayList <FetchMode > joinedFetchesList = new ArrayList <>();
689689
690+ if ( persistentClass .hasSubclasses () ) {
691+ for ( Selectable selectable : persistentClass .getIdentifier ().getSelectables () ) {
692+ if ( !selectable .isFormula () ) {
693+ // Identifier columns are always shared between subclasses
694+ sharedColumnNames .add ( ( (Column ) selectable ).getQuotedName ( dialect ) );
695+ }
696+ }
697+ }
698+
690699 for ( Property prop : persistentClass .getSubclassPropertyClosure () ) {
691700 names .add ( prop .getName () );
692701 types .add ( prop .getType () );
You can’t perform that action at this time.
0 commit comments