HHH-8845 - More informative error message
This commit is contained in:
parent
9f215c8475
commit
6329be56ff
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue