{"record":{"id":"46695764ca061e09","repo":"hibernate/hibernate-orm","slug":"could-not-resolve-join-path-fullpath","errorCode":null,"errorMessage":"Could not resolve join path '\" + fullPath + \"'","messagePattern":"Could not resolve join path '\" \\+ fullPath \\+ \"'","errorType":"exception","errorClass":"PathException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/query/hql/internal/QualifiedJoinPathConsumer.java","lineNumber":383,"sourceCode":"\t\tpublic void consumeIdentifier(String identifier, boolean isTerminal, boolean allowReuse) {\n\t\t\tif ( !path.isEmpty() ) {\n\t\t\t\tpath.append( '.' );\n\t\t\t}\n\t\t\tpath.append( identifier );\n\t\t\tif ( isTerminal ) {\n\t\t\t\tfinal String fullPath = path.toString();\n\t\t\t\tfinal var joinedEntityType =\n\t\t\t\t\t\tcreationState.getCreationContext().getJpaMetamodel()\n\t\t\t\t\t\t\t\t.getHqlEntityReference( fullPath );\n\t\t\t\tif ( joinedEntityType == null ) {\n\t\t\t\t\tfinal var cteStatement = creationState.findCteStatement( fullPath );\n\t\t\t\t\tif ( cteStatement != null ) {\n\t\t\t\t\t\t//noinspection rawtypes,unchecked\n\t\t\t\t\t\tjoin = new SqmCteJoin( cteStatement, alias, joinType, sqmRoot );\n\t\t\t\t\t\tcreationState.getCurrentProcessingState().getPathRegistry().register( join );\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tthrow new PathException( \"Could not resolve join path '\" + fullPath + \"'\" );\n\t\t\t\t}\n\n\t\t\t\tassert ! ( joinedEntityType instanceof SqmPolymorphicRootDescriptor );\n\n\t\t\t\tif ( fetch ) {\n\t\t\t\t\tLOG.debugf( \"Ignoring fetch on entity join: %s(%s)\", joinedEntityType.getHibernateEntityName(), alias );\n\t\t\t\t}\n\n\t\t\t\tjoin = new SqmEntityJoin<>( joinedEntityType, alias, joinType, sqmRoot );\n\t\t\t\tcreationState.getCurrentProcessingState().getPathRegistry().register( join );\n\t\t\t}\n\t\t}\n\n\t\t@Override\n\t\tpublic void consumeTreat(String typeName, boolean isTerminal) {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}\n","sourceCodeStart":365,"sourceCodeEnd":401,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/query/hql/internal/QualifiedJoinPathConsumer.java#L365-L401","documentation":"Error \"Could not resolve join path '\" + fullPath + \"'\" thrown in hibernate/hibernate-orm.","triggerScenarios":"A name referenced in a mapping, query, or configuration cannot be resolved at runtime.","commonSituations":"Typos in entity/attribute/mapping names, missing mappings, or refactoring without updating references.","solutions":["Verify each segment of the join path is a mapped association.","Check aliases and attribute names in the path."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fad1729dce015f908198d57a8d80274a30f905a5","analyzedAt":"2026-08-22T04:13:57.527Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}