org.springframework.data:spring-data-jpa breaking changes
org.springframework.data:spring-data-jpa 4.0.0 (November 14, 2025) is its newest release with breaking changes, 61 of them. The first: Removes API that was previously deprecated for removal in org.springframework.data:spring-data-jpa 4.0.0. Every breaking API change we have recorded in org.springframework.data:spring-data-jpa on Maven Central: 174 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.2.0. Source repository
Packages on Maven Central run on Java. Java end of life dates.
org.springframework.data:spring-data-jpa 4.0.0 breaking changes
- Removed
Deprecated API marked for removal has been deleted, so code still calling it will no longer compile. Move to the replacement API named in the Spring Data JPA 4.0 docs. github.com - Removed
org.springframework.data.jpa.domain.Specification.serialVersionUID
Specification.serialVersionUID was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.query.AbstractJpaQuery.createBinder
AbstractJpaQuery.createBinder was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.query.DefaultQueryEnhancer
org.springframework.data.jpa.repository.query.DefaultQueryEnhancer was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.query.JpaCountQueryCreator.getParameterExpressions
JpaCountQueryCreator.getParameterExpressions was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.query.JpaEntityGraph.isAdHocEntityGraph
JpaEntityGraph.isAdHocEntityGraph was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.query.JpaQueryCreator.createCriteriaQuery
JpaQueryCreator.createCriteriaQuery was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.query.JpaQueryCreator.getParameterExpressions
JpaQueryCreator.getParameterExpressions was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.query.JSqlParserUtils
org.springframework.data.jpa.repository.query.JSqlParserUtils was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.query.KeysetScrollSpecification.serialVersionUID
KeysetScrollSpecification.serialVersionUID was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.query.ParameterBinder
org.springframework.data.jpa.repository.query.ParameterBinder was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.query.ParameterMetadataProvider.getExpressions
ParameterMetadataProvider.getExpressions was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.query.ParameterMetadataProvider.next
ParameterMetadataProvider.next was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.query.ParameterMetadataProvider.ParameterMetadata
org.springframework.data.jpa.repository.query.ParameterMetadataProvider.ParameterMetadata was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.query.PartTreeJpaQuery.createBinder
PartTreeJpaQuery.createBinder was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.query.QueryEnhancer.applySorting
QueryEnhancer.applySorting was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.query.QueryEnhancer.getJoinAliases
QueryEnhancer.getJoinAliases was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.query.QueryUtils.detectAlias
QueryUtils.detectAlias was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.support.QuerydslJpaRepository
org.springframework.data.jpa.repository.support.QuerydslJpaRepository was removed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com - Renamed
org.springframework.data.jpa.repository.config.JpaRepositoryConfigExtension.JpaRepositoryRegistrationAotProcessor.contribute
Use org.springframework.data.jpa.repository.config.JpaRepositoryConfigExtension.JpaRepositoryRegistrationAotProcessor.configureTypeContributions instead. central.sonatype.com - Behavior changed
Derived queries are now built as String-based JPQL instead of CriteriaQuery, which can change generated queries and query behavior. github.com - Behavior changed
Query validation exceptions that are already IllegalArgumentException are passed through instead of being wrapped again, so code catching the wrapped form may need updating. github.com - Behavior changed
JpaOrder
Invalid JpaOrder values now raise InvalidDataAccessApiUsageException, so catch blocks expecting other exception types must be updated. github.com - Default changed
AOT repository generation is now on by default, so repository setup changes unless you opt out. github.com - Signature changed
org.springframework.data.jpa.domain.AbstractAuditable_.createdDate
Was static jakarta.persistence.metamodel.SingularAttribute<org.springframework.data.jpa.domain.AbstractAuditable, java.util.Date> createdDate; now static... central.sonatype.com - Signature changed
org.springframework.data.jpa.domain.AbstractAuditable_.lastModifiedDate
Was static jakarta.persistence.metamodel.SingularAttribute<org.springframework.data.jpa.domain.AbstractAuditable, java.util.Date> lastModifiedDate; now static... central.sonatype.com - Signature changed
org.springframework.data.jpa.domain.QAbstractAuditable.createdDate
Was final com.querydsl.core.types.dsl.DateTimePath<java.util.Date> createdDate; now final com.querydsl.core.types.dsl.DateTimePath<java.time.Instant> createdDate. central.sonatype.com - Signature changed
org.springframework.data.jpa.domain.QAbstractAuditable.lastModifiedDate
Was final com.querydsl.core.types.dsl.DateTimePath<java.util.Date> lastModifiedDate; now final com.querydsl.core.types.dsl.DateTimePath<java.time.Instant> lastModifiedDate. central.sonatype.com - Signature changed
org.springframework.data.jpa.mapping.JpaMetamodelMappingContext.createPersistentEntity
Was protected <T> org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?> createPersistentEntity(org.springframework.data.util.TypeInformation<T>); now protected <T> org.springframework.data.jpa.mapping.JpaPersistentEntityImpl<?>... central.sonatype.com - Signature changed
org.springframework.data.jpa.mapping.JpaMetamodelMappingContext.shouldCreatePersistentEntityFor
Was protected boolean shouldCreatePersistentEntityFor(org.springframework.data.util.TypeInformation<?>); now protected boolean shouldCreatePersistentEntityFor(org.springframework.data.core.TypeInformation<?>). central.sonatype.com - Signature changed
org.springframework.data.jpa.provider.PersistenceProvider.extractQueryString
Was String extractQueryString(jakarta.persistence.Query); now String extractQueryString(Object). central.sonatype.com - Signature changed
org.springframework.data.jpa.provider.QueryExtractor.extractQueryString
Was String extractQueryString(jakarta.persistence.Query); now String extractQueryString(Object). central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.JpaSpecificationExecutor.delete
Was long delete(org.springframework.data.jpa.domain.Specification<T>); now long delete(org.springframework.data.jpa.domain.DeleteSpecification<T>) long delete(org.springframework.data.jpa.domain.PredicateSpecification<T>). central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.query.AbstractJpaQuery.getExecution
Was protected org.springframework.data.jpa.repository.query.JpaQueryExecution getExecution(); now protected org.springframework.data.jpa.repository.query.JpaQueryExecution... central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.query.JpaCountQueryCreator.<init>
Was JpaCountQueryCreator(org.springframework.data.repository.query.parser.PartTree, org.springframework.data.repository.query.ReturnedType, jakarta.persistence.criteria.CriteriaBuilder... central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.query.JpaCountQueryCreator.and
Was protected jakarta.persistence.criteria.Predicate and(org.springframework.data.repository.query.parser.Part, jakarta.persistence.criteria.Predicate, java.util.Iterator<Object>); now protected... central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.query.JpaCountQueryCreator.complete
Was protected final jakarta.persistence.criteria.CriteriaQuery<?> complete(jakarta.persistence.criteria.Predicate, org.springframework.data.domain.Sort) protected jakarta.persistence.criteria.CriteriaQuery<?>... central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.query.JpaCountQueryCreator.create
Was protected jakarta.persistence.criteria.Predicate create(org.springframework.data.repository.query.parser.Part, java.util.Iterator<Object>); now protected org.springframework.data.jpa.repository.query.JpqlQueryBuilder.Predicate... central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.query.JpaCountQueryCreator.or
Was protected jakarta.persistence.criteria.Predicate or(jakarta.persistence.criteria.Predicate, jakarta.persistence.criteria.Predicate); now protected org.springframework.data.jpa.repository.query.JpqlQueryBuilder.Predicate... central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.query.JpaParameters.JpaParameter.<init>
Was protected JpaParameter(org.springframework.core.MethodParameter) protected JpaParameter(org.springframework.core.MethodParameter, org.springframework.data.util.TypeInformation<?>); now protected... central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.query.JpaParametersParameterAccessor.<init>
Was JpaParametersParameterAccessor(org.springframework.data.repository.query.Parameters<?, ?>, Object[]); now JpaParametersParameterAccessor(org.springframework.data.jpa.repository.query.JpaParameters, Object[]). central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.query.JpaQueryCreator
Was class JpaQueryCreator extends org.springframework.data.repository.query.parser.AbstractQueryCreator<jakarta.persistence.criteria.CriteriaQuery<?>, jakarta.persistence.criteria.Predicate>; now class JpaQueryCreator extends... central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.query.JpaQueryCreator.<init>
Was JpaQueryCreator(org.springframework.data.repository.query.parser.PartTree, org.springframework.data.repository.query.ReturnedType, jakarta.persistence.criteria.CriteriaBuilder... central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.query.JpaQueryCreator.and
Was protected jakarta.persistence.criteria.Predicate and(org.springframework.data.repository.query.parser.Part, jakarta.persistence.criteria.Predicate, java.util.Iterator<Object>); now protected... central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.query.JpaQueryCreator.complete
Was protected final jakarta.persistence.criteria.CriteriaQuery<?> complete(jakarta.persistence.criteria.Predicate, org.springframework.data.domain.Sort) protected jakarta.persistence.criteria.CriteriaQuery<?>... central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.query.JpaQueryCreator.create
Was protected jakarta.persistence.criteria.Predicate create(org.springframework.data.repository.query.parser.Part, java.util.Iterator<Object>); now protected org.springframework.data.jpa.repository.query.JpqlQueryBuilder.Predicate... central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.query.JpaQueryCreator.or
Was protected jakarta.persistence.criteria.Predicate or(jakarta.persistence.criteria.Predicate, jakarta.persistence.criteria.Predicate); now protected org.springframework.data.jpa.repository.query.JpqlQueryBuilder.Predicate... central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy.create
Was static org.springframework.data.repository.query.QueryLookupStrategy create(jakarta.persistence.EntityManager, org.springframework.data.jpa.repository.query.JpaQueryMethodFactory... central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.query.JSqlParserQueryEnhancer.<init>
Was JSqlParserQueryEnhancer(org.springframework.data.jpa.repository.query.DeclaredQuery); now JSqlParserQueryEnhancer(org.springframework.data.jpa.repository.query.QueryProvider). central.sonatype.com - Signature changed
org.springframework.data.jpa.repository.query.JSqlParserQueryEnhancer.createCountQueryFor
The signature of JSqlParserQueryEnhancer.createCountQueryFor changed in org.springframework.data:spring-data-jpa 4.0.0 central.sonatype.com
And 11 more in this version. Sign up to see every change
org.springframework.data:spring-data-jpa 4.0.0-RC2 breaking changes
- Removed
Deprecated APIs marked for removal are deleted in this release, so code that still calls them must move to their replacements before upgrading. github.com
org.springframework.data:spring-data-jpa 4.0.0-M4 breaking changes
- Behavior changed
The EntityManager is now accessed later, which changes initialization timing for applications using Hibernate-native multi-tenancy. github.com - Default changed
AOT repository generation is now on by default, which changes how repositories are created at build and run time. github.com
org.springframework.data:spring-data-jpa 4.0.0-M3 breaking changes
- Behavior changed
Derived queries that built CriteriaQuery now use String-based JPQL queries, which can change generated query behavior. github.com
org.springframework.data:spring-data-jpa 4.0.0-M1 breaking changes
- Configuration changed
The commons-logging exclusion is removed, so commons-logging can now come onto the classpath through this dependency. github.com
org.springframework.data:spring-data-jpa 3.0.0 breaking changes
- Removed
org.springframework.data.jpa.convert.threetenbp.ThreeTenBackPortJpaConverters
org.springframework.data.jpa.convert.threetenbp.ThreeTenBackPortJpaConverters was removed in org.springframework.data:spring-data-jpa 3.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.JpaRepository.findAllById
JpaRepository.findAllById was removed in org.springframework.data:spring-data-jpa 3.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.JpaRepository.saveAll
JpaRepository.saveAll was removed in org.springframework.data:spring-data-jpa 3.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.query.JpaParametersParameterAccessor.potentiallyUnwrap
JpaParametersParameterAccessor.potentiallyUnwrap was removed in org.springframework.data:spring-data-jpa 3.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.support.JpaRepositoryImplementation.findAllById
JpaRepositoryImplementation.findAllById was removed in org.springframework.data:spring-data-jpa 3.0.0 central.sonatype.com - Removed
org.springframework.data.jpa.repository.support.JpaRepositoryImplementation.saveAll
JpaRepositoryImplementation.saveAll was removed in org.springframework.data:spring-data-jpa 3.0.0 central.sonatype.com - Signature changed
org.springframework.data.jpa.convert.QueryByExamplePredicateBuilder.getPredicate
Was static <T> javax.persistence.criteria.Predicate getPredicate(javax.persistence.criteria.Root<T>, javax.persistence.criteria.CriteriaBuilder, org.springframework.data.domain.Example<T>) static <T> javax.persistence.criteria.Predicate... central.sonatype.com - Signature changed
org.springframework.data.jpa.convert.threeten.Jsr310JpaConverters.InstantConverter
Was static class InstantConverter implements javax.persistence.AttributeConverter<java.time.Instant, java.util.Date>; now static class InstantConverter implements jakarta.persistence.AttributeConverter<java.time.Instant... central.sonatype.com - Signature changed
org.springframework.data.jpa.convert.threeten.Jsr310JpaConverters.InstantConverter.convertToDatabaseColumn
Was java.util.Date convertToDatabaseColumn(java.time.Instant); now java.sql.Timestamp convertToDatabaseColumn(java.time.Instant). central.sonatype.com - Signature changed
org.springframework.data.jpa.convert.threeten.Jsr310JpaConverters.InstantConverter.convertToEntityAttribute
Was java.time.Instant convertToEntityAttribute(java.util.Date); now java.time.Instant convertToEntityAttribute(java.sql.Timestamp). central.sonatype.com
And 96 more in this version. Sign up to see every change
Older versions
2 older versions.
Show 2 older versions
org.springframework.data:spring-data-jpa 3.0.0-M4 breaking changes
- Behavior changed
Derived query methods using IgnoreCase now generate queries with the Upper function, and this behavior cannot be configured. Check queries that rely on the previous case-insensitive SQL. github.com
org.springframework.data:spring-data-jpa 3.0.0-M1 breaking changes
- Renamed
JpaRepository.getOne
The getOne/getById method names are changed so they indicate the method returns a reference. Update calls to the new name. github.com
Related packages
- org.springframework.data:spring-data-commons
- org.springframework.data:spring-data-mongodb
- org.springframework.data:spring-data-redis
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.