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 47
47
import org .hibernate .metamodel .mapping .MappingModelExpressible ;
48
48
import org .hibernate .metamodel .mapping .internal .MappingModelCreationProcess ;
49
49
import org .hibernate .metamodel .model .domain .BasicDomainType ;
50
+ import org .hibernate .metamodel .model .domain .DomainType ;
50
51
import org .hibernate .metamodel .model .domain .EmbeddableDomainType ;
51
52
import org .hibernate .metamodel .model .domain .EntityDomainType ;
52
53
import org .hibernate .metamodel .model .domain .ManagedDomainType ;
@@ -791,8 +792,12 @@ private String[] doGetImplementors(Class<?> clazz) throws MappingException {
791
792
public MappingModelExpressible <?> resolveMappingExpressible (
792
793
SqmExpressible <?> sqmExpressible ,
793
794
Function <NavigablePath , TableGroup > tableGroupLocator ) {
794
- if ( sqmExpressible instanceof SqmPath ) {
795
+ if ( sqmExpressible instanceof SqmPath <?> ) {
795
796
final SqmPath <?> sqmPath = (SqmPath <?>) sqmExpressible ;
797
+ final DomainType <?> sqmPathType = sqmPath .getResolvedModel ().getSqmPathType ();
798
+ if ( sqmPathType instanceof MappingModelExpressible <?> ) {
799
+ return (MappingModelExpressible <?>) sqmPathType ;
800
+ }
796
801
final NavigablePath navigablePath = sqmPath .getNavigablePath ();
797
802
if ( navigablePath .getParent () != null ) {
798
803
final TableGroup parentTableGroup = tableGroupLocator .apply ( navigablePath .getParent () );
You can’t perform that action at this time.
0 commit comments