Restore translation of IllegalArgumentException for JPA
See gh-35111
This commit is contained in:
parent
b3dc75265d
commit
2e9e45ee55
|
@ -108,9 +108,8 @@ public class HibernateExceptionTranslator implements PersistenceExceptionTransla
|
||||||
if (ex.getCause() instanceof HibernateException hibernateEx) {
|
if (ex.getCause() instanceof HibernateException hibernateEx) {
|
||||||
return convertHibernateAccessException(hibernateEx);
|
return convertHibernateAccessException(hibernateEx);
|
||||||
}
|
}
|
||||||
return EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(ex);
|
|
||||||
}
|
}
|
||||||
return null;
|
return EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue