hibernate/hibernate-orm · error · UnsupportedOperationException
"Dialect does not support…
Error message
"Dialect does not support aggregateComponentAssignmentExpression: " + getClass().getName()
What it means
Default AggregateSupportImpl cannot produce an assignment expression that updates a single component inside an aggregate column; dialects must override aggregateComponentAssignmentExpression to support structural column partial updates. Calling it on a non-aggregate dialect always throws.
Solutions
- Use a dialect with aggregate support.
- Map the component as a plain embeddable instead of an aggregate type.
Defensive patterns
Strategy: fallback
When it happens
Trigger: Triggered when the application calls a Hibernate dialect feature that the configured database dialect cannot provide: Dialect does not support aggregateComponentAssignmentExpression.
Common situations: Common when running against a database whose dialect lacks this capability, when a mapping or HQL/Criteria query requests unsupported functionality, or when the wrong dialect is configured for the database in use. Error: Dialect does not support aggregateComponentAssignmentExpression.
AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22).
Data as JSON: /api/errors/bcccc24f57a78c34.
Report an issue: GitHub.
Appendix: source
Thrown at hibernate-core/src/main/java/org/hibernate/dialect/aggregate/AggregateSupportImpl.java:46
@Override
public String aggregateComponentCustomReadExpression(
String template,
String placeholder,
String aggregateParentReadExpression,
String columnExpression,
int aggregateColumnTypeCode,
SqlTypedMapping column,
TypeConfiguration typeConfiguration) {
throw new UnsupportedOperationException( "Dialect does not support aggregateComponentCustomReadExpression: " + getClass().getName() );
}
@Override
public String aggregateComponentAssignmentExpression(
String aggregateParentAssignmentExpression,
String columnExpression,
int aggregateColumnTypeCode,
Column column) {
throw new UnsupportedOperationException( "Dialect does not support aggregateComponentAssignmentExpression: " + getClass().getName() );
}
@Override
public String aggregateCustomWriteExpression(
AggregateColumn aggregateColumn,
List<Column> aggregatedColumns) {
return null;
}
@Override
public boolean requiresAggregateCustomWriteExpressionRenderer(int aggregateSqlTypeCode) {
throw new UnsupportedOperationException( "Dialect does not support requiresAggregateCustomWriteExpressionRenderer: " + getClass().getName() );
}
@Override
public boolean preferSelectAggregateMapping(int aggregateSqlTypeCode) {
// By default, assume the driver supports this and prefer selecting the aggregate column
return true;View on GitHub (pinned to fad1729dce)