fix an ancient error message
This commit is contained in:
parent
f505373258
commit
f81124c511
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue