hibernate/hibernate-orm · error · UnsupportedOperationException
This is not supported yet!
Error message
This is not supported yet!
What it means
Error "This is not supported yet!" thrown in hibernate/hibernate-orm.
Source
Thrown at hibernate-core/src/main/java/org/hibernate/query/specification/internal/SimpleProjectionSpecificationImpl.java:57
@Nonnull SelectionSpecification<T> specification,
@Nonnull Path<T, X> path) {
this.selectionSpecification = specification;
this.path = path;
this.attribute = null;
}
public SimpleProjectionSpecificationImpl(
@Nonnull SelectionSpecification<T> specification,
@Nonnull SingularAttribute<? super T, X> attribute) {
this.selectionSpecification = specification;
this.attribute = attribute;
this.path = null;
}
@Nonnull
@Override
public QuerySpecification<T> restrict(@Nonnull Restriction<? super T> restriction) {
throw new UnsupportedOperationException( "This is not supported yet!" );
}
@Nonnull
@Override
public SelectionQuery<X> createQuery(@Nonnull EntityHandler entityHandler) {
return entityHandler.unwrap( SharedSessionContract.class )
.createQuery( buildCriteria( entityHandler.getCriteriaBuilder() ) );
}
@Nonnull
@Override
public CriteriaQuery<X> buildCriteria(@Nonnull CriteriaBuilder builder) {
var impl = (SelectionSpecificationImpl<T>) selectionSpecification;
// TODO: handle HQL, existing criteria
final var tupleQuery =
(SqmSelectStatement<X>)
builder.createQuery( getResultType() );
final var root = tupleQuery.from( impl.getResultType() );View on GitHub (pinned to fad1729dce)
Solutions
- This simple-projection specification operation is not supported yet. Use an explicit projection query.
When it happens
Trigger: A code path that Hibernate has not implemented is exercised: This is not supported yet!
Common situations: Using newer/edge API features (certain projections, specifications, fetch mementos, composite-path native mappings, null keys in key-based pagination) that are present but not yet implemented.
AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22).
Data as JSON: /api/errors/4d9ee8b362eded87.
Report an issue: GitHub.