Package org.hibernate.query.sqm
Class UnknownEntityException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.QueryException
-
- org.hibernate.query.SemanticException
-
- org.hibernate.query.sqm.UnknownEntityException
-
- All Implemented Interfaces:
Serializable
public class UnknownEntityException extends SemanticException
Indicates a failure to resolve an entity name in HQL to a known mapped entity type.- See Also:
EntityTypeException
, Serialized Form- API Note:
- The JPA criteria API requires that this problem be reported
as an
IllegalArgumentException
, and so we usually throwEntityTypeException
from the SQM objects, and then wrap as an instance of this exception type in theHqlTranslator
.
-
-
Constructor Summary
Constructors Constructor Description UnknownEntityException(String entityName)
UnknownEntityException(String message, String entityName)
UnknownEntityException(String message, String entityName, Exception cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEntityName()
-
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
-
-
-
-
Method Detail
-
getEntityName
public String getEntityName()
-
-