Restore translation of IllegalArgumentException for JPA

See gh-35111
This commit is contained in:
Juergen Hoeller
2025-06-25 22:39:18 +02:00
parent b3dc75265d
commit 2e9e45ee55
@@ -108,9 +108,8 @@ public class HibernateExceptionTranslator implements PersistenceExceptionTransla
if (ex.getCause() instanceof HibernateException hibernateEx) {
return convertHibernateAccessException(hibernateEx);
}
return EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(ex);
}
return null;
return EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(ex);
}
/**