{"record":{"id":"492c471cd1132204","repo":"hibernate/hibernate-orm","slug":"couldn-t-find-propertydata-for-propertyname-in","errorCode":null,"errorMessage":"Couldn't find PropertyData for [<propertyName>] in class: <className>","messagePattern":"Couldn't find PropertyData for \\[<propertyName>\\] in class: <className>","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/boot/model/internal/EntityBinder.java","lineNumber":1257,"sourceCode":"\t}\n\n\tprivate static MemberDetails getMemberDetails(\n\t\t\tInheritanceState inheritanceState,\n\t\t\tMap<ClassDetails, InheritanceState> inheritanceStates,\n\t\t\tProperty declaredProperty,\n\t\t\tPersistentClass superclass) {\n\t\tvar superclassDetails = inheritanceState.getClassDetails().getSuperClass();\n\t\twhile ( !superclass.getClassName().equals( superclassDetails.getClassName()) ) {\n\t\t\tsuperclassDetails = superclassDetails.getSuperClass();\n\t\t}\n\t\tfinal var superclassInheritanceState = inheritanceStates.get( superclassDetails );\n\t\tfinal var elementsToProcess = superclassInheritanceState.getElementsToProcess();\n\t\tfor ( var element : elementsToProcess.getElements() ) {\n\t\t\tif ( declaredProperty.getName().equals( element.getPropertyName() ) ) {\n\t\t\t\treturn element.getAttributeMember();\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalArgumentException( \"Couldn't find PropertyData for [\" + declaredProperty.getName()\n\t\t\t\t\t\t+ \"] in class: \" + declaredProperty.getPersistentClass().getClassName() );\n\t}\n\n\tprivate static String getMissingPropertiesString(Set<String> propertyNames) {\n\t\tfinal var missingProperties = new StringBuilder();\n\t\tfor ( String propertyName : propertyNames ) {\n\t\t\tif ( !missingProperties.isEmpty() ) {\n\t\t\t\tmissingProperties.append( \", \" );\n\t\t\t}\n\t\t\tmissingProperties.append( \"'\" ).append( propertyName ).append( \"'\" );\n\t\t}\n\t\treturn missingProperties.toString();\n\t}\n\n\tprivate static PersistentClass makePersistentClass(\n\t\t\tInheritanceState inheritanceState,\n\t\t\tPersistentClass superEntity,\n\t\t\tMetadataBuildingContext metadataBuildingContext) {","sourceCodeStart":1239,"sourceCodeEnd":1275,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/boot/model/internal/EntityBinder.java#L1239-L1275","documentation":"Error \"Couldn't find PropertyData for [<propertyName>] in class: <className>\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Hibernate cannot locate the persistent property metadata referenced by the mapping.","commonSituations":"A mapped property name with no corresponding field/getter on the class, typically after renaming without updating the mapping.","solutions":["Verify the property name exists in the class and is accessible for persistence (field or getter)."],"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"}