{"record":{"id":"ad6be0664be8f63c","repo":"hibernate/hibernate-orm","slug":"unable-to-resolve-path","errorCode":null,"errorMessage":"Unable to resolve path '{}'","messagePattern":"Unable to resolve path '(.+?)'","errorType":"exception","errorClass":"PathResolutionException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/metamodel/mapping/ordering/ast/PathConsumer.java","lineNumber":57,"sourceCode":"\tpublic void consumeIdentifier(\n\t\t\tString unquotedIdentifier,\n\t\t\tString identifier, boolean isBase,\n\t\t\tboolean isTerminal) {\n\t\tif ( isBase ) {\n\t\t\t// each time we start a new sequence we need to reset our state\n\t\t\treset();\n\t\t}\n\n\t\tif ( !pathSoFar.isEmpty() ) {\n\t\t\tpathSoFar.append( '.' );\n\t\t}\n\t\tpathSoFar.append( unquotedIdentifier );\n\n\t\ttry {\n\t\t\tcurrentPart = currentPart.resolvePathPart( unquotedIdentifier, identifier, isTerminal, translationContext );\n\t\t}\n\t\tcatch (PathResolutionException pre) {\n\t\t\tthrow new PathResolutionException( \"Unable to resolve path '\" + pathSoFar + \"'\" );\n\t\t}\n\t}\n\n\tprivate void reset() {\n\t\tpathSoFar.setLength( 0 );\n\t\tcurrentPart = rootSequencePart;\n\t}\n}\n","sourceCodeStart":39,"sourceCodeEnd":66,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/ordering/ast/PathConsumer.java#L39-L66","documentation":"Error \"Unable to resolve path '{}'\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown when a path in an @OrderBy expression cannot be resolved to any attribute of the ordered collection's element type.","commonSituations":"See trigger scenarios.","solutions":["Correct the path in the @OrderBy/ordering expression: each segment must be an existing attribute of the collection element type."],"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"}