HHH-2879 - add an actual api for loading an entity by natural candidate key (mapped natural-id)

This commit is contained in:
Steve Ebersole 2012-01-16 10:33:05 -06:00
parent fbc71652b8
commit e52d184b51
1 changed files with 0 additions and 6 deletions

View File

@ -2189,12 +2189,6 @@ public final class SessionImpl extends AbstractSessionImpl implements EventSourc
private IdentifierLoadAccessImpl(EntityPersister entityPersister) {
this.entityPersister = entityPersister;
if ( ! entityPersister.hasNaturalIdentifier() ) {
throw new HibernateException(
String.format( "Entity [%s] did not define a natural id", entityPersister.getEntityName() )
);
}
}
private IdentifierLoadAccessImpl(String entityName) {