File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/internal Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 4545import org .hibernate .metamodel .mapping .MappingModelExpressible ;
4646import org .hibernate .metamodel .mapping .internal .MappingModelCreationProcess ;
4747import org .hibernate .metamodel .model .domain .BasicDomainType ;
48+ import org .hibernate .metamodel .model .domain .DomainType ;
4849import org .hibernate .metamodel .model .domain .EmbeddableDomainType ;
4950import org .hibernate .metamodel .model .domain .EntityDomainType ;
5051import org .hibernate .metamodel .model .domain .JpaMetamodel ;
@@ -721,6 +722,10 @@ public MappingModelExpressible<?> resolveMappingExpressible(
721722 SqmExpressible <?> sqmExpressible ,
722723 Function <NavigablePath , TableGroup > tableGroupLocator ) {
723724 if ( sqmExpressible instanceof SqmPath <?> sqmPath ) {
725+ final DomainType <?> sqmPathType = sqmPath .getResolvedModel ().getSqmPathType ();
726+ if ( sqmPathType instanceof MappingModelExpressible <?> mappingExpressible ) {
727+ return mappingExpressible ;
728+ }
724729 final NavigablePath navigablePath = sqmPath .getNavigablePath ();
725730 if ( navigablePath .getParent () != null ) {
726731 final TableGroup parentTableGroup = tableGroupLocator .apply ( navigablePath .getParent () );
You can’t perform that action at this time.
0 commit comments