Package org.hibernate.query
Class IllegalMutationQueryException
- 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
-
- org.hibernate.query.IllegalMutationQueryException
-
- All Implemented Interfaces:
Serializable
public class IllegalMutationQueryException extends IllegalQueryOperationException
Indicates an attempt to callQueryProducer.createMutationQuery(String)
,QueryProducer.createNamedMutationQuery(String)
orQueryProducer.createNativeMutationQuery(String)
with a non-mutation query (generally a select query)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IllegalMutationQueryException(String message)
IllegalMutationQueryException(String message, String queryString)
-
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
-
-