File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/internal Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 4747import org .hibernate .metamodel .mapping .MappingModelExpressible ;
4848import org .hibernate .metamodel .mapping .internal .MappingModelCreationProcess ;
4949import org .hibernate .metamodel .model .domain .BasicDomainType ;
50+ import org .hibernate .metamodel .model .domain .DomainType ;
5051import org .hibernate .metamodel .model .domain .EmbeddableDomainType ;
5152import org .hibernate .metamodel .model .domain .EntityDomainType ;
5253import org .hibernate .metamodel .model .domain .ManagedDomainType ;
@@ -791,8 +792,12 @@ private String[] doGetImplementors(Class<?> clazz) throws MappingException {
791792 public MappingModelExpressible <?> resolveMappingExpressible (
792793 SqmExpressible <?> sqmExpressible ,
793794 Function <NavigablePath , TableGroup > tableGroupLocator ) {
794- if ( sqmExpressible instanceof SqmPath ) {
795+ if ( sqmExpressible instanceof SqmPath <?> ) {
795796 final SqmPath <?> sqmPath = (SqmPath <?>) sqmExpressible ;
797+ final DomainType <?> sqmPathType = sqmPath .getResolvedModel ().getSqmPathType ();
798+ if ( sqmPathType instanceof MappingModelExpressible <?> ) {
799+ return (MappingModelExpressible <?>) sqmPathType ;
800+ }
796801 final NavigablePath navigablePath = sqmPath .getNavigablePath ();
797802 if ( navigablePath .getParent () != null ) {
798803 final TableGroup parentTableGroup = tableGroupLocator .apply ( navigablePath .getParent () );
You can’t perform that action at this time.
0 commit comments