HHH-17779 Add UnsupportedOperationException throwing impl of getKeyedResultList to the AbstractQuery

This commit is contained in:
marko-bekhta 2024-03-05 15:29:33 +01:00 committed by Marko Bekhta
parent 5817fd9323
commit 22966aea6a
1 changed files with 6 additions and 1 deletions

View File

@ -38,6 +38,8 @@ import org.hibernate.jpa.internal.util.FlushModeTypeHelper;
import org.hibernate.jpa.internal.util.LockModeTypeHelper;
import org.hibernate.query.BindableType;
import org.hibernate.query.IllegalQueryOperationException;
import org.hibernate.query.KeyedPage;
import org.hibernate.query.KeyedResultList;
import org.hibernate.query.Order;
import org.hibernate.query.Query;
import org.hibernate.query.QueryParameter;
@ -663,7 +665,10 @@ public abstract class AbstractQuery<R>
protected abstract int doExecuteUpdate();
@Override
public KeyedResultList<R> getKeyedResultList(KeyedPage<R> keyedPage) {
throw new UnsupportedOperationException("Getting keyed result list is not supported by this query.");
}
@Override
public void setOptionalId(Serializable id) {