{"record":{"id":"c7bd300e2be8bc16","repo":"hibernate/hibernate-orm","slug":"could-not-resolve-property-propertyname-of","errorCode":null,"errorMessage":"Could not resolve property: ${propertyName} of: ${entityName}","messagePattern":"Could not resolve property: (.+?) of: (.+?)","errorType":"exception","errorClass":"QueryException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java","lineNumber":4731,"sourceCode":"\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 * @deprecated by the supertypes\n\t */\n\t@Override @Deprecated\n\tpublic Type getPropertyType(String propertyName) throws MappingException {\n\t\tfinal var propertyPath = resolvePropertyPath( propertyName );\n\t\tif ( propertyPath == null ) {\n\t\t\tthrow new QueryException( \"Could not resolve property: \" + propertyName + \" of: \" + getEntityName() );\n\t\t}\n\t\treturn propertyPath.type();\n\t}\n\n\t@Override\n\tpublic boolean isSelectBeforeUpdateRequired() {\n\t\treturn isSelectBeforeUpdate();\n\t}\n\n\tpublic final OptimisticLockStyle optimisticLockStyle() {\n\t\treturn getOptimisticLockStyle();\n\t}\n\n\t@Override\n\tpublic Object createProxy(Object id, SharedSessionContractImplementor session) throws HibernateException {\n\t\treturn representationStrategy.getProxyFactory().getProxy( id, session );\n\t}\n","sourceCodeStart":4713,"sourceCodeEnd":4749,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java#L4713-L4749","documentation":"Error \"Could not resolve property: ${propertyName} of: ${entityName}\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown when property access (e.g. for a filter, fetch profile, or HQL path) names a property not defined on the entity.","commonSituations":"See trigger scenarios.","solutions":["Fix the property path in the query: the named property must exist on the named entity.","Check for typos and for properties renamed in 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"}