{"record":{"id":"40ac74df312bf842","repo":"hibernate/hibernate-orm","slug":"defaultfetchprofile-has-implicit-fetches","errorCode":null,"errorMessage":"DefaultFetchProfile has implicit fetches","messagePattern":"DefaultFetchProfile has implicit fetches","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/engine/profile/DefaultFetchProfile.java","lineNumber":69,"sourceCode":"\t\t}\n\t\treturn super.getFetchByRole( role );\n\t}\n\n\t@Override\n\tpublic boolean hasSubselectLoadableCollectionsEnabled(EntityPersister persister) {\n\t\tfinal AttributeMappingsList attributeMappings = persister.getAttributeMappings();\n\t\tfor ( int i = 0; i < attributeMappings.size(); i++ ) {\n\t\t\tAttributeMapping attributeMapping = attributeMappings.get( i );\n\t\t\tif ( attributeMapping.getMappedFetchOptions().getStyle() == SUBSELECT ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\t@Override\n\tpublic Map<String, Fetch> getFetches() {\n\t\tthrow new UnsupportedOperationException( \"DefaultFetchProfile has implicit fetches\" );\n\t}\n}\n","sourceCodeStart":51,"sourceCodeEnd":72,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/engine/profile/DefaultFetchProfile.java#L51-L72","documentation":"Error \"DefaultFetchProfile has implicit fetches\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown at hibernate-core/src/main/java/org/hibernate/engine/profile/DefaultFetchProfile.java:69 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Do not add fetch overrides to the default fetch profile; create a named @FetchProfile instead","Remove implicit fetches from the default profile configuration"],"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"}