Commit Graph
31 Commits
Author SHA1 Message Date
Stéphane Nicoll d4d20787c1 Polish "Lazily resolve JPA fallback bootstrap executor"
See gh-50801
2026-07-14 17:45:54 +02:00
Ns 8c519369ec Lazily resolve JPA fallback bootstrap executor
Previously, the `entityManagerFactoryBuilder` bean method injected a
`Map<String, AsyncTaskExecutor>` to determine the fallback executor used
for background JPA bootstrapping. A `Map` parameter is resolved eagerly,
so this forced early initialization of every `AsyncTaskExecutor` bean
whenever the builder was created, even when background bootstrapping was
not in use. When an `AsyncTaskExecutor` directly or transitively
depended on the `EntityManagerFactory`, this resulted in a
`BeanCurrentlyInCreationException`.

The fallback executor is now resolved lazily.
`EntityManagerFactoryBuilder` holds a `Supplier` that is only invoked
when background bootstrapping is actually required, and the executor is
then looked up from the `BeanFactory` rather than eagerly injected. A
new `Supplier`-based constructor is added for this purpose; the existing
constructor that accepts an `AsyncTaskExecutor` is retained and
delegates to it.

The same eager `Map<String, AsyncTaskExecutor>` injection, along with an
unused private method, is also removed from
`DataJpaRepositoriesAutoConfiguration`.

See gh-50801

Signed-off-by: Ns <397827222@qq.com>
2026-07-14 17:11:14 +02:00
Andy Wilkinson d6a23b72b8 Deprecate SpringJtaPlatform
This deprecation should have happened as part of c54d05c for #48969.

Closes gh-50592
2026-05-27 14:35:08 +01:00
Andy Wilkinson a573e121fb fixup! Upgrade to Hibernate 7.4.0.Final 2026-05-27 14:12:09 +01:00
Andy Wilkinson 41dbadeb6b Upgrade to Hibernate 7.4.0.Final
Closes gh-50578
2026-05-27 14:12:06 +01:00
Andy Wilkinson 6a74bb85a3 Merge branch '4.0.x'
Closes gh-50440
2026-05-14 15:03:44 +01:00
Andy Wilkinson add52b6ccd Merge branch '3.5.x' into 4.0.x
Closes gh-50439
2026-05-14 15:02:24 +01:00
Phillip Webb d28cec064e Replace PropertyBasedRequiredBackgroundBootstrapping with exception
Replace `PropertyBasedRequiredBackgroundBootstrapping` with a simpler
`BootstrapExecutorRequiredException` and use a regular failure analyzer
to provide help.

See gh-49733
See gh-49688
2026-03-25 19:19:48 -07:00
Phillip Webb 91f4bc9455 Add 'spring.jpa.bootstrap' property
Add a `spring.jpa.bootstrap` property that can be set to `async`
to switch on background bootstrapping in classic JPA setup.

Closes gh-49733
2026-03-24 16:45:11 -07:00
Phillip Webb e76c6c5488 Refine Spring Data JPA background bootstrapping mode support
Update `spring.data.jpa.repositories.bootstrap-mode` logic
so that:

- A value of `lazy` no longer sets a bootstrap executor.

- A value of `deferred` requires that a bootstrap executor is
  ultimately set, and fails with a meaningful message if it is
  not.

The logic used to find the AsyncTaskExecutor has now moved to
the `JpaBaseConfiguration` and is triggered by the
`EntityManagerFactoryBuilder` only when background
bootstrapping is required.

Closes gh-49688
2026-03-24 16:43:59 -07:00
Andy Wilkinson c54d05ca8a Use vendor adapter to configure JTA Platform and Bean Container
Closes gh-48969
2026-03-09 11:37:41 +00:00
Andy Wilkinson d4d5a18ac8 Merge branch '4.0.x'
Closes gh-49523
2026-03-09 11:30:16 +00:00
Andy Wilkinson 3977d878d9 Merge branch '3.5.x' into 4.0.x
Closes gh-49522
2026-03-09 11:23:20 +00:00
Andy Wilkinson bba597748b Merge branch '4.0.x'
Closes gh-48918
2026-01-20 18:51:47 +00:00
Andy Wilkinson df5014a29d Revert "Temporarily add hints needed for Hibernate 7.2"
This reverts commit 1a4426a369.

Closes gh-48550
2026-01-20 18:05:52 +00:00
Andy Wilkinson 3d6671d47a Merge branch '4.0.x'
Closes gh-48701
2026-01-08 12:14:50 +00:00
Andy Wilkinson ef1f4e2fa2 Merge branch '4.0.x'
Closes gh-48700
2026-01-08 12:01:09 +00:00
Andy Wilkinson 0ffffee4bf Upgrade to Nullability Plugin 0.0.9
Closes gh-48638
2026-01-08 11:59:51 +00:00
Andy Wilkinson 9bd1a460a1 Correct packaging of test code
Closes gh-48699
2026-01-08 11:43:43 +00:00
Stéphane Nicoll d0fed0ea6b Fix formatting
See gh-47802
2025-12-19 11:58:02 +01:00
Stéphane Nicoll 9602be20aa Polish contribution
See gh-47802
2025-12-19 11:46:52 +01:00
Lansana DIOMANDE b8cefd2b9c Add support for configuring additional PersistenceUnitPostProcessor
See gh-47802

Signed-off-by: Lansana DIOMANDE <lansana.diomande@epfedu.fr>
2025-12-19 11:46:51 +01:00
Andy WilkinsonandChristoph Strobl 1a4426a369 Temporarily add hints needed for Hibernate 7.2
See gh-48518

Co-Authored-By: Christoph Strobl <christoph.strobl@broadcom.com>
2025-12-16 12:15:27 +00:00
Stéphane Nicoll 3d23261f87 Merge branch '3.5.x'
Closes gh-48122
2025-11-13 14:55:19 +01:00
Moritz Halbritter f59fc4020a Add nullability annotations to tests in module/spring-boot-hibernate
See gh-47263
2025-10-06 12:03:55 +02:00
Moritz Halbritter 011d42cb2a Improve null-safety of module/spring-boot-hibernate
See gh-46926
2025-08-27 15:18:29 +02:00
Andy Wilkinson b42a060d0a Merge branch '3.5.x'
Closes gh-46943
2025-08-22 11:59:17 +01:00
Phillip Webb 7140be8751 Rename metrics, observation, and tracing modules
Rename modules to include 'micrometer'.

Closes gh-46925
2025-08-20 16:05:11 -07:00
Moritz Halbritter b705817d4e Add nullability annotations to module/spring-boot-hibernate
See gh-46587
2025-08-01 09:33:03 +02:00
Moritz Halbritter c0f1f641ce Make auto-configurations final and remove public members
Closes gh-32883
2025-07-29 09:48:49 +02:00
Phillip Webb decc32dde3 Restructure project directories to better fit Gradle
Closes gh-46358
2025-07-10 17:54:08 -07:00