Hibernate ORM
  1. Hibernate ORM
  2. HHH-8704

ManyToOneType#scheduleBatchLoadIfNeeded creates EntityKey instances even if absolutely not necessary

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.0.CR1, 4.2.8
    • Component/s: None
    • Labels:
      None
    • Last commented by a user?:
      true

      Description

      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.

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Steve Ebersole
              Reporter:
              Steve Ebersole
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 2m
                2m

                  Development