Add Hibernate 7 batches 2-5: mapping styles, JPA annotations, natural IDs, @Immutable, stored procedures, in-memory test databases, JNDI mocking, proxies, associations, temporal mapping and named queries (Hibernate 7.4.5.Final + Spring Boot 4.1.1 + JDK 25)

This commit is contained in:
2026-09-06 10:30:19 +05:30
commit 5b97a85fe7
229 changed files with 17349 additions and 0 deletions
@@ -0,0 +1,17 @@
@JdbcTypeCode(SqlTypes.JSON) with NO JSON provider on the classpath.
Reproduced by removing tools.jackson.core:jackson-databind and excluding
spring-boot-starter-jackson from spring-boot-starter-web, leaving zero JSON
providers on the test classpath:
$ mvn -o -B dependency:list -DincludeScope=test | grep -icE 'jackson-databind|yasson|johnzon'
0
$ mvn -o -B test -Dtest=JsonColumnOnH2Test
org.hibernate.HibernateException: Could not find a FormatMapper for the JSON format, which is required for mapping JSON types. JSON FormatMapper configuration is automatic, but requires that you have either Jackson or a JSONB implementation like Yasson on the class path.
Put either Jackson or a JSONB implementation back on the classpath and the same
test passes. spring-boot-starter-data-jpa on its own does not bring one:
$ mvn -o -B test -Dtest=JsonColumnOnH2Test # with tools.jackson.core:jackson-databind present
[INFO] BUILD SUCCESS