fix an ancient error message

This commit is contained in:
Gavin King 2024-03-24 17:47:58 +01:00
parent f505373258
commit f81124c511
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 //TODO: cache the persister, this shows up in yourkit
final Object id = session.getEntityPersister( entityName, obj ).getIdentifier( obj, session ); final Object id = session.getEntityPersister( entityName, obj ).getIdentifier( obj, session );
if ( id == null ) { if ( id == null ) {
throw new IdentifierGenerationException( throw new IdentifierGenerationException( "Identifier for entity '" + entityName
"ids for this class must be manually assigned before calling save(): " + entityName + "' must be manually assigned before making the entity persistent" );
);
} }
return id; return id;
} }