|
ManyToOneType#scheduleBatchLoadIfNeeded creates EntityKey and then checks whether the entity is batch loadable. By far the most common case is that the entity will not be batch loadable, and that info is available from the persister directly (in fact the EntityKey method simply delegates to the persister method).
Also, org.hibernate.engine.spi.EntityKey#isBatchLoadable ought to be removed and calls adjusted to use org.hibernate.persister.entity.EntityPersister#isBatchLoadable instead.
|