mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 06:29:10 +00:00
Restore translation of IllegalArgumentException for JPA
See gh-35111
This commit is contained in:
+1
-2
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user