HHH-8514 - EntityManager#createQuery(CriteriaQuery) should throw IAE rather than ISE
This commit is contained in:
parent
37d2e1804a
commit
75dc1138de
|
@ -54,7 +54,12 @@ public class CriteriaCompiler implements Serializable {
|
|||
}
|
||||
|
||||
public Query compile(CompilableCriteria criteria) {
|
||||
criteria.validate();
|
||||
try {
|
||||
criteria.validate();
|
||||
}
|
||||
catch (IllegalStateException ise) {
|
||||
throw new IllegalArgumentException( "Error occurred validating the Criteria", ise );
|
||||
}
|
||||
|
||||
final Map<ParameterExpression<?>, ExplicitParameterInfo<?>> explicitParameterInfoMap =
|
||||
new HashMap<ParameterExpression<?>, ExplicitParameterInfo<?>>();
|
||||
|
|
Loading…
Reference in New Issue