diff --git a/core/src/main/java/org/hibernate/id/IdentifierGeneratorFactory.java b/core/src/main/java/org/hibernate/id/IdentifierGeneratorFactory.java index 2c646797d4..08ff96a7ed 100644 --- a/core/src/main/java/org/hibernate/id/IdentifierGeneratorFactory.java +++ b/core/src/main/java/org/hibernate/id/IdentifierGeneratorFactory.java @@ -95,7 +95,7 @@ public final class IdentifierGeneratorFactory { return idgen; } catch (Exception e) { - throw new MappingException("could not instantiate id generator", e); + throw new MappingException("could not instantiate id generator [entity-name=" + params.get( IdentifierGenerator.ENTITY_NAME ) + "]", e); } }