Package org.hibernate.query
Class IllegalQueryOperationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.QueryException
-
- org.hibernate.query.IllegalQueryOperationException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IllegalMutationQueryException
,IllegalSelectQueryException
public class IllegalQueryOperationException extends QueryException
Thrown when an operation of theQuery
interface is called which is unsupported due to the nature of the query itself. For example, this exception is throw ifexecuteUpdate()
is invoked on an instance ofQuery
representing a JPQL or SQLSELECT
query.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IllegalQueryOperationException(String message)
IllegalQueryOperationException(String message, String queryString, Exception cause)
-
Method Summary
-
Methods inherited from class org.hibernate.QueryException
generateQueryException, getMessage, getOriginalMessage, getQueryString, wrapWithQueryString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-