Fix problem when Hibernate exception is hidden when executing "ClientScopeTest".
This behavior changed when upgrading to Hibernate 6
This commit is contained in:
parent
16d4c732e0
commit
b7d5b6a135
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ public class JpaMapExceptionConverter implements ExceptionConverter, Environment
|
||||||
@Override
|
@Override
|
||||||
public Throwable convert(Throwable e) {
|
public Throwable convert(Throwable e) {
|
||||||
if (!(e instanceof PersistenceException)) return null;
|
if (!(e instanceof PersistenceException)) return null;
|
||||||
return PersistenceExceptionConverter.convert(e.getCause() != null ? e.getCause() : e);
|
return PersistenceExceptionConverter.convert(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue