hibernate/hibernate-orm · error · UnsupportedOperationException
DefaultFetchProfile has implicit fetches
Error message
DefaultFetchProfile has implicit fetches
What it means
Error "DefaultFetchProfile has implicit fetches" thrown in hibernate/hibernate-orm.
Source
Thrown at hibernate-core/src/main/java/org/hibernate/engine/profile/DefaultFetchProfile.java:69
}
return super.getFetchByRole( role );
}
@Override
public boolean hasSubselectLoadableCollectionsEnabled(EntityPersister persister) {
final AttributeMappingsList attributeMappings = persister.getAttributeMappings();
for ( int i = 0; i < attributeMappings.size(); i++ ) {
AttributeMapping attributeMapping = attributeMappings.get( i );
if ( attributeMapping.getMappedFetchOptions().getStyle() == SUBSELECT ) {
return true;
}
}
return false;
}
@Override
public Map<String, Fetch> getFetches() {
throw new UnsupportedOperationException( "DefaultFetchProfile has implicit fetches" );
}
}
View on GitHub (pinned to fad1729dce)
Solutions
- Do not add fetch overrides to the default fetch profile; create a named @FetchProfile instead
- Remove implicit fetches from the default profile configuration
When it happens
Trigger: Thrown at hibernate-core/src/main/java/org/hibernate/engine/profile/DefaultFetchProfile.java:69 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22).
Data as JSON: /api/errors/40ac74df312bf842.
Report an issue: GitHub.