HHH-17915 - Composite Key Join HQL
This commit is contained in:
parent
e16251afbd
commit
c6222fef00
|
@ -402,7 +402,8 @@ public abstract class AbstractPropertyMapping implements PropertyMapping {
|
|||
if ( !hasNonIdentifierPropertyNamedId ) {
|
||||
String idpath1 = extendPath( path, EntityPersister.ENTITY_ID );
|
||||
addPropertyPath( idpath1, idtype, columns, columnReaders, columnReaderTemplates, formulaTemplates, factory );
|
||||
if ( !(idtype.isComponentType() && idtype instanceof EmbeddedComponentType) ) {
|
||||
if ( !(idtype.isComponentType() && idtype instanceof EmbeddedComponentType) ||
|
||||
(idtype instanceof EmbeddedComponentType && ((EmbeddedComponentType) idtype).hasNotNullProperty()) ) {
|
||||
initPropertyPaths( idpath1, idtype, columns, columnReaders, columnReaderTemplates, formulaTemplates, factory );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue