Uploaded image for project: 'Spring Data JPA'
  1. Spring Data JPA
  2. DATAJPA-1397

Add support for deferred repository initialization

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1 RC2 (Lovelace)
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Lovelace RC1

      Description

      Even if a repository is declared as lazy initialized (through @Lazy), the initialization of JpaRepositoryFactoryBean already uses an EntityManager instance which requires the container to interact with the EntityManagerFactory. This prevents the asynchronous initialization means introduced by SPR-13732 from fully taking effect as downstream components trigger the initialization of repos eagerly.

      DATACMNS-1368 introduces general infrastructure tweaks to allow configuring a lazy and deferred bootstrap mode which we need to expose via @EnableJpaRepositories and our bean definition registrations.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                olivergierke Oliver Drotbohm
                Reporter:
                olivergierke Oliver Drotbohm
                Last updater:
                Oliver Drotbohm
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: