Add Hibernate 7 batches 2-6 and batch 7: mapping styles, JPA annotations, natural IDs, @Immutable, stored procedures, in-memory test databases, JNDI mocking, proxies, associations, temporal mapping, named queries, HQL, Criteria API, EntityManager bootstrapping, Ehcache 3 L2 cache configuration, HikariCP connection pooling, and Hibernate Validator CDI integration (Hibernate 7.4.5.Final + Spring Boot 4.1.1 + JDK 25)

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EQNA6DJ9VgCtW6zhCE8Xud
This commit is contained in:
2026-09-20 04:56:34 +00:00
committed by Claude
co-authored by Claude Sonnet 5
commit 4292f1cd54
283 changed files with 21259 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
The failure as it actually appeared in a full 'mvn -B test' run of this repository,
before hibernate.cache.use_second_level_cache was pinned to false in application.yml.
It is order-dependent: running the two classes on their own passes.
[ERROR] ImmutableEntityTest.nativeSqlUpdate_onImmutableEntity_alwaysWorks:184 » Rollback Error while committing the transaction [Unable to perform afterTransactionCompletion callback: Cache[com.ank
[ERROR] Tests run: 140, Failures: 0, Errors: 1, Skipped: 0
Why every Spring context in the project had a second-level cache at all:
$ mvn -o -B test -Dtest=JCacheOnClasspathAutoEnablesL2Test
second-level cache enabled = true
region factory = org.hibernate.cache.jcache.internal.JCacheRegionFactory
explicitly configured? = true
Nothing in src/main/resources/application.yml mentions caching:
$ grep -ic cache src/main/resources/application.yml
0