From 6329be56fff50e88f7b9360e0213479a29cac647 Mon Sep 17 00:00:00 2001 From: Paul Lysak Date: Thu, 23 Jan 2014 22:59:34 +0200 Subject: [PATCH] HHH-8845 - More informative error message --- hibernate-core/src/main/java/org/hibernate/type/EntityType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/type/EntityType.java b/hibernate-core/src/main/java/org/hibernate/type/EntityType.java index f7f2f0eeec..e09f6ca6b6 100644 --- a/hibernate-core/src/main/java/org/hibernate/type/EntityType.java +++ b/hibernate-core/src/main/java/org/hibernate/type/EntityType.java @@ -346,7 +346,7 @@ public abstract class EntityType extends AbstractType implements AssociationType else { Object id = getIdentifier( original, session ); if ( id == null ) { - throw new AssertionFailure("non-transient entity has a null id"); + throw new AssertionFailure("non-transient entity has a null id: "+original.getClass().getName()); } id = getIdentifierOrUniqueKeyType( session.getFactory() ) .replace(id, null, session, owner, copyCache);