Package org.hibernate
Class EntityFilterException
- All Implemented Interfaces:
Serializable
Thrown if an enabledfilter would filter out the target of a
@ManyToOne or@OneToOne association. By default, a filter does not apply to to-one association fetching, and this exception does not occur. However, if a filter is explicitly declaredapplyToLoadByKey = true, then the filter is applied, and it's possible that a filtered entity is the target of a to-one association belonging to an unfiltered entity. Replacing such a filtered object withnull would lead to data loss, and so filtering never results in such replacement. Instead, this exception is thrown to indicate the inconsistency of the data with the filter definition.
Constructor Summary
ConstructorsMethod Summary
Methods inherited from class java.lang.Throwable
addSuppressed,fillInStackTrace,getCause,getLocalizedMessage,getMessage,getStackTrace,getSuppressed,initCause,printStackTrace,printStackTrace,printStackTrace,setStackTrace,toString
Constructor Details
EntityFilterException
Method Details
getEntityName
getIdentifier
getRole