fix an ancient error message

This commit is contained in:
Gavin King 2024-03-24 17:47:58 +01:00 committed by Christian Beikov
parent 4dc437b9aa
commit f70c197b14
1 changed files with 2 additions and 3 deletions

View File

@ -30,9 +30,8 @@ public class Assigned implements IdentifierGenerator, StandardGenerator {
//TODO: cache the persister, this shows up in yourkit
final Object id = session.getEntityPersister( entityName, obj ).getIdentifier( obj, session );
if ( id == null ) {
throw new IdentifierGenerationException(
"ids for this class must be manually assigned before calling save(): " + entityName
);
throw new IdentifierGenerationException( "Identifier for entity '" + entityName
+ "' must be manually assigned before making the entity persistent" );
}
return id;
}