Skip to content
CAI
Software that uses CAICheck a score

spring-projects/spring-data-jpa

52.7

Adequate · 22 October 2026

36.1k

lines of production code

Java

primary language

9

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is the Spring Data JPA project, a framework that provides repository support for JPA-based data access. It includes a newly introduced module for Hibernate Envers to manage entity revision history and query revisions. The codebase also features tooling for build standardization, static analysis, and performance benchmarking of repository query methods.

Features

Added Spring Data JPA architecture and benchmarking configuration files

This change introduces new configuration and benchmarking assets for the Spring Data JPA module. It adds a Sonargraph architecture definition file (\Spring Data JPA.sonargraph\) that defines the project's internal layering (Support, Repository, Domain, Mapping, Utilities) and external subsystem dependencies (Querydsl, Spring, Spring Data Commons), along with code quality thresholds. It also includes an AspectJ configuration file (\aop.xml\) to enable \AnnotationBeanConfigurerAspect\ for dependency injection, and a Java code formatting profile (\formatting.xml\) named "Spring Data" to standardize code style. Additionally, JMH benchmark classes (\AotRepositoryQueryMethodBenchmarks.java\ and \RepositoryQueryMethodBenchmarks.java\) are added to measure the performance of AOT-generated repository query methods against standard reflective ones.

spring-data-jpa · high confidence

Initial release of Spring Data Envers module

This change introduces the new spring-data-envers module, providing Spring Data repository support for Hibernate Envers revision history. It includes the \@EnableEnversRepositories\ annotation for configuration, core repository interfaces and implementations (\EnversRevisionRepository\, \EnversRevisionRepositoryImpl\) to query entity revisions, and support classes (\DefaultRevisionMetadata\, \ReflectionRevisionEntityInformation\) to handle both default and custom revision entities. The implementation enables paginated and sorted revision queries and integrates with the standard Spring Data repository infrastructure.

spring-data-envers · high confidence

Behavioural changes

Generated Java code now uses JSpecify nullability annotations

The ANTLR code generator template has been updated to include JSpecify annotations (such as @NullUnmarked) in the generated Java parser, listener, base listener, and visitor classes. This change improves static analysis and null-safety checking for users of the generated code by providing explicit nullability information, replacing previous approaches that may have relied on other mechanisms or lacked such annotations.

org · high confidence

Migrate build to Spring Develocity Conventions and update JVM configuration

The Maven build now integrates the Spring Develocity Conventions extension (version 0.0.26) to standardize build behavior and reporting. Additionally, the JVM configuration has been updated to include specific exports and opens for JDK compiler modules and base libraries, ensuring compatibility with the new build conventions and tooling requirements.

.mvn · high confidence

Dependencies

Spring Data JPA 4.2.0-SNAPSHOT dependency baseline and build configuration

The project dependencies and build configuration have been updated to the 4.2.0-SNAPSHOT release line. This includes upgrading the core Spring Data Commons dependency to 4.2.0-SNAPSHOT, setting the default Hibernate version to 7.4.9.Final, and updating EclipseLink to 5.0.1. Test infrastructure dependencies have also been refreshed, including H2 to 2.5.250, PostgreSQL JDBC driver to 42.7.13, MySQL JDBC driver to 26.7.0, Oracle JDBC driver to 23.26.3.0.0, and JSqlParser to 5.4. The build now supports testing against Hibernate 8.0.0.Beta1 and 8.1.0-SNAPSHOT via dedicated profiles, and includes Testcontainers support for MySQL, PostgreSQL, and Oracle.

(dependencies) · high confidence

Upgrade Maven Wrapper to version 3.9.16

The Maven Wrapper configuration has been updated to use Maven distribution version 3.9.16. This ensures that builds executed via the wrapper will consistently use this specific Maven version, improving reproducibility and potentially providing access to the latest features and bug fixes available in that release.

.mvn/wrapper · high confidence

Housekeeping

Repository initialization with standard project scaffolding

The repository has been initialized with essential project files, including a .gitignore configuration to exclude build artifacts and IDE settings, a Maven wrapper (mvnw/mvnw.cmd) to ensure consistent builds, and standard documentation files such as README.adoc, CONTRIBUTING.adoc, CI.adoc, and SECURITY.adoc. The project is licensed under the Apache License 2.0, and obsolete placeholder files have been removed.

(repo-wide) · high confidence

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 54 → 53 (-1.0)
  • Rubric changed (rubric-2026.10.1 → rubric-2026.10.5) — scores are not directly comparable.

Lenses

  • Code Health 67 → 67 (+0.3)
  • Architecture 53 → 53 (+0.0)
  • Maturity 49 → 47 (-2.3)
  • Readiness 60 → 60 (+0.0)
  • Security 61 → 61 (+0.0)
  • Performance 72 → 72 (+0.0)

Resolved (11)

  • Change coupling: HqlCountQueryTransformer.java ↔ JpqlCountQueryTransformer.java (spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/HqlCountQueryTransformer.java)
  • Duplicated block (11 lines × 2) (spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/EqlCountQueryTransformer.java)
  • Duplicated block (16 lines × 3) (spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/EqlCountQueryTransformer.java)
  • Duplicated block (16 lines × 3) (spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/EqlCountQueryTransformer.java)
  • Duplicated block (21–22 lines × 2) (spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/EqlCountQueryTransformer.java)
  • Duplicated block (33 lines × 2) (spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/EqlCountQueryTransformer.java)
  • FileTooLong: aot/JpaCodeBlocks.java (spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/aot/JpaCodeBlocks.java)
  • Members sharing a duplicated core (4 members, 50+ identical tokens) (spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/EqlQueryRenderer.java)
  • Members sharing a duplicated core (4 members, 50+ identical tokens) (spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/EqlQueryRenderer.java)
  • Off-boarding risk: anonymized user #1
  • QueryBlockBuilder.doCreateQuery (cyclomatic 18) (spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/aot/JpaCodeBlocks.java)

New (33)

  • Change coupling: EqlCountQueryTransformer.java ↔ JpqlSortedQueryTransformer.java (spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/EqlCountQueryTransformer.java)
  • Duplicated block (18 lines × 2) (spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/EqlCountQueryTransformer.java)
  • Duplicated block (5 lines × 2) (spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/EqlCountQueryTransformer.java)
  • Members sharing a duplicated core (4 members, 50+ identical tokens) (spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/EqlQueryRenderer.java)
  • Members sharing a duplicated core (4 members, 50+ identical tokens) (spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/EqlQueryRenderer.java)
  • Members sharing a duplicated core (8 members, 50+ identical tokens) (spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/EqlCountQueryTransformer.java)
  • No assertions: idAndVersionAsIdentifiers (spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/query/AbstractQueryRendererTests.java)
  • No assertions: idAndVersionFunctions (spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/query/AbstractQueryRendererTests.java)
  • Off-boarding risk: anonymized user #1
  • Orphaned file (spring-data-envers/src/main/java/org/springframework/data/envers/repository/config/EnableEnversRepositories.java)
  • Orphaned file (spring-data-envers/src/main/java/org/springframework/data/envers/repository/support/DefaultRevisionMetadata.java)
  • Orphaned file (spring-data-envers/src/main/java/org/springframework/data/envers/repository/support/EnversRevisionRepositoryFactoryBean.java)
  • Orphaned file (spring-data-envers/src/main/java/org/springframework/data/envers/repository/support/ReflectionRevisionEntityInformation.java)
  • Orphaned file (spring-data-jpa/src/main/java/org/springframework/data/jpa/convert/threeten/Jsr310JpaConverters.java)
  • Orphaned file (spring-data-jpa/src/main/java/org/springframework/data/jpa/domain/AbstractAuditable.java)
  • Orphaned file (spring-data-jpa/src/main/java/org/springframework/data/jpa/domain/support/AuditingBeanFactoryPostProcessor.java)
  • Orphaned file (spring-data-jpa/src/main/java/org/springframework/data/jpa/domain/support/AuditingEntityListener.java)
  • Orphaned file (spring-data-jpa/src/main/java/org/springframework/data/jpa/mapping/JpaMetamodelMappingContext.java)
  • Orphaned file (spring-data-jpa/src/main/java/org/springframework/data/jpa/mapping/JpaPersistentEntityImpl.java)
  • Orphaned file (spring-data-jpa/src/main/java/org/springframework/data/jpa/mapping/JpaPersistentPropertyImpl.java)
  • …and 13 more

Changes since last survey

  • 17 commits — 14 feature/other, 3 fixes

By area

  • spring-data-jpa/src — 15 commits
  • (root) — 1 commit
  • .github/workflows — 1 commit

Notable commits

  • fix: Fix AOT code generation for derived delete queries returning Set.
  • fix: Fix AOT constructor generation for custom QueryEnhancerSelector.
  • fix: Fix inverted lower/upper bound checks in vector Range<Score> queries.
  • change: Add configuration that allows to disable query validation on startup.
  • change: Consider query rewriting in query method validation.
  • change: Disable second-level cache during the AOT metamodel bootstrap.
  • change: Polishing.
  • change: Polishing.
  • change: Polishing.
  • change: Polishing.
  • change: Polishing.
  • change: Refactor to CountSelection delegate.
  • change: Retain property precedence.
  • change: Revisit count query rendering.
  • change: Support ID and VERSION functions in JPQL and EQL.
  • change: Update portfolio train workflow (v0.0.7).
  • change: Upgrade to Postgres JDBC Driver 42.7.14.

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

spring-projects/spring-data-jpa was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 22 October 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit e087d549654a7ec0d5941d4d7b5059ee224b7acf — the exact code this score is about.
  • Scored under rubric-2026.10.5 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer measure-2026.10.3+preprod-fddbc92cb8df.