mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-13 14:44:48 +00:00
HHH-17779 Add UnsupportedOperationException throwing impl of getKeyedResultList to the AbstractQuery
This commit is contained in:
parent
a5bfed34b4
commit
dd53ccf542
@ -38,6 +38,8 @@
|
||||
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 int executeUpdate() throws HibernateException {
|
||||
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user