HHH-8845 - More informative error message

This commit is contained in:
Paul Lysak 2014-01-23 22:59:34 +02:00 committed by Brett Meyer
parent 9f215c8475
commit 6329be56ff
1 changed files with 1 additions and 1 deletions

View File

@ -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);