HHH-2879 - add an actual api for loading an entity by natural candidate key (mapped natural-id)
This commit is contained in:
parent
fbc71652b8
commit
e52d184b51
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue