{"record":{"id":"2447907114f8e282","repo":"hibernate/hibernate-orm","slug":"entity-entityname-is-non-pojo-and-therefore-n","errorCode":null,"errorMessage":"Entity [{entityName}] is non-pojo, and therefore not instrumented","messagePattern":"Entity \\[(.+?)\\] is non-pojo, and therefore not instrumented","errorType":"exception","errorClass":"NotInstrumentedException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/bytecode/internal/BytecodeEnhancementMetadataNonPojoImpl.java","lineNumber":56,"sourceCode":"\t\treturn entityName;\n\t}\n\n\t@Override\n\tpublic boolean isEnhancedForLazyLoading() {\n\t\treturn false;\n\t}\n\n\t@Override\n\tpublic LazyAttributesMetadata getLazyAttributesMetadata() {\n\t\treturn lazyAttributesMetadata;\n\t}\n\n\t@Override\n\tpublic LazyAttributeLoadingInterceptor injectInterceptor(\n\t\t\tObject entity,\n\t\t\tObject identifier,\n\t\t\tSharedSessionContractImplementor session) throws NotInstrumentedException {\n\t\tthrow new NotInstrumentedException( errorMsg );\n\t}\n\n\t@Override\n\tpublic void injectInterceptor(\n\t\t\tObject entity,\n\t\t\tPersistentAttributeInterceptor interceptor,\n\t\t\tSharedSessionContractImplementor session) {\n\t\tthrow new NotInstrumentedException( errorMsg );\n\t}\n\n\t@Override\n\tpublic void injectEnhancedEntityAsProxyInterceptor(\n\t\t\tObject entity,\n\t\t\tEntityKey entityKey,\n\t\t\tSharedSessionContractImplementor session) {\n\t\tthrow new NotInstrumentedException( errorMsg );\n\t}\n","sourceCodeStart":38,"sourceCodeEnd":74,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/bytecode/internal/BytecodeEnhancementMetadataNonPojoImpl.java#L38-L74","documentation":"Error \"Entity [{entityName}] is non-pojo, and therefore not instrumented\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Bytecode enhancement, proxy creation, or lazy interception is applied to an incompatible class or configuration.","commonSituations":"Build-time enhancement with module-system restrictions, mismatched Hibernate versions between build and runtime, or hibernate.bytecode.provider=none with a model that needs proxies.","solutions":["Use Hibernate enhancement features only with POJO entity classes; dynamic-map models do not support bytecode interception."],"exampleFix":"Use Hibernate enhancement features only with POJO entity classes; dynamic-map models do not support bytecode interception.","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"}