Fix select child of joinsubclass inheritance
This commit is contained in:
parent
b06be7ff6d
commit
3ba826e1c8
|
@ -1236,6 +1236,7 @@ public class JoinedSubclassEntityPersister extends AbstractEntityPersister {
|
|||
|
||||
@Override
|
||||
public EntityDiscriminatorMapping getDiscriminatorMapping(TableGroup tableGroup) {
|
||||
if(hasSubclasses()) {
|
||||
if ( explicitDiscriminatorColumnName == null ) {
|
||||
CaseSearchedExpressionInfo info = getCaseSearchedExpression( tableGroup );
|
||||
return new JoinedSubclassDiscriminatorMappingImpl(
|
||||
|
@ -1251,6 +1252,8 @@ public class JoinedSubclassEntityPersister extends AbstractEntityPersister {
|
|||
return super.getDiscriminatorMapping( tableGroup );
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void visitConstraintOrderedTables(ConstraintOrderedTableConsumer consumer) {
|
||||
|
|
Loading…
Reference in New Issue