Package org.hibernate.query
Class NamedQueryValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.persistence.PersistenceException
org.hibernate.HibernateException
org.hibernate.QueryException
org.hibernate.query.NamedQueryValidationException
- All Implemented Interfaces:
Serializable
Indicates that validation and translation of one or more named
queries failed at initialization time. This exception packages
every
QueryException
that occurred for an
invalid HQL/JPQL query, together with any exceptions that indicate
problems with named native SQL queries.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNamedQueryValidationException
(String message, Map<String, HibernateException> errors) -
Method Summary
Modifier and TypeMethodDescriptionA map from query name to the error that occurred while interpreting or translating the named query.Methods inherited from class org.hibernate.QueryException
getMessage, getOriginalMessage, getQueryString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NamedQueryValidationException
-
-
Method Details
-
getErrors
A map from query name to the error that occurred while interpreting or translating the named query.
-