Hello,
Here an extract of code where the original MappingException is lost.
It is a pity because the original exception has more information to identify the cause of the error.
Indeed, I was obliged to use the debugger to understand my error.
org.hibernate.cfg.annotations.EntityBinder
line 220 :
catch (MappingException me) {
throw new AnnotationException( "Use of the same entity name twice: " + name );
}
Is it possible to replace with
throw new AnnotationException( "Use of the same entity name twice: " + name, me);
thank you and cheer for your work on Hibernate
|