HHH-11375 - SINGLE_TABLE associated entity query missing restriction of DiscriminatorColumn
This commit is contained in:
parent
4d5c66c80b
commit
34d92507c9
|
@ -563,7 +563,7 @@ public class SingleTableEntityPersister extends AbstractEntityPersister {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String oneToManyFilterFragment(String alias) throws MappingException {
|
public String oneToManyFilterFragment(String alias) throws MappingException {
|
||||||
return forceDiscriminator
|
return needsDiscriminator()
|
||||||
? discriminatorFilterFragment( alias, null )
|
? discriminatorFilterFragment( alias, null )
|
||||||
: "";
|
: "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue