{"record":{"id":"324ba14dab6d5fa3","repo":"hibernate/hibernate-orm","slug":"unknown-property-propertyname","errorCode":null,"errorMessage":"Unknown property: ${propertyName}","messagePattern":"Unknown property: (.+?)","errorType":"exception","errorClass":"MappingException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java","lineNumber":2433,"sourceCode":"\tpublic String[] toColumns(String propertyName) throws QueryException {\n\t\treturn getPropertyColumnNames( propertyName );\n\t}\n\n\t/**\n\t * {@inheritDoc}\n\t *\n\t * Warning:\n\t * When there are duplicated property names in the subclasses\n\t * then this method may return the wrong results.\n\t * To ensure correct results, this method should only be used when\n\t * {@literal this} is the concrete EntityPersister (since the\n\t * concrete EntityPersister cannot have duplicated property names).\n\t */\n\t@Override\n\tpublic String[] getPropertyColumnNames(String propertyName) {\n\t\tfinal var propertyPath = resolvePropertyPath( propertyName );\n\t\tif ( propertyPath == null ) {\n\t\t\tthrow new MappingException( \"Unknown property: \" + propertyName );\n\t\t}\n\t\treturn propertyPath.columnNames();\n\t}\n\n\tprivate DiscriminatorType<?> discriminatorDomainType;\n\n\t@Override\n\tpublic DiscriminatorType<?> getDiscriminatorDomainType() {\n\t\tif ( discriminatorDomainType == null ) {\n\t\t\tdiscriminatorDomainType = buildDiscriminatorType();\n\t\t}\n\t\treturn discriminatorDomainType;\n\t}\n\n\tprivate DiscriminatorType<?> buildDiscriminatorType() {\n\t\tfinal var discriminatorBasicType = getDiscriminatorType();\n\t\treturn discriminatorBasicType == null\n\t\t\t\t? null","sourceCodeStart":2415,"sourceCodeEnd":2451,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java#L2415-L2451","documentation":"Error \"Unknown property: ${propertyName}\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown when a query or entity graph references a property name that does not exist on the entity.","commonSituations":"See trigger scenarios.","solutions":["Correct the property name in the query/mapping to one declared on the entity."],"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"}