Skip navigation links
Spring Data Core
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Interfaces
  • Classes
  • Fields
  • Methods
  • Constructors
  • Terminally Deprecated Elements
    Element
    Description
    org.springframework.data.aot.AotContext.introspectBeanDefinition(String)
    since 4.0, use AotContext.getBeanFactory() and interact with the bean factory directly.
    org.springframework.data.aot.AotContext.introspectBeanDefinition(BeanReference)
    since 4.0, use AotContext.getBeanFactory() and interact with the bean factory directly.
    org.springframework.data.aot.AotContext.IntrospectedBeanDefinition
    since 4.0 as this isn't widely used and can be easily implemented within user code.
    org.springframework.data.aot.AotContext.introspectType(String)
    since 4.0 as this isn't widely used and can be easily implemented within user code.
    org.springframework.data.aot.AotContext.scanPackageForTypes(Collection<Class<? extends Annotation>>, Collection<String>)
    since 4.0, use AotContext.getTypeScanner() directly
    org.springframework.data.aot.AotContext.TypeIntrospector
    since 4.0 as this isn't widely used and can be easily implemented within user code.
    org.springframework.data.geo.GeoModule
    since 4.0, use GeoJacksonModule instead.
    org.springframework.data.repository.config.AotRepositoryContext.getBasePackages()
    since 4.0, use AotRepositoryContext.getConfigurationSource() and call RepositoryConfigurationSource.getBasePackages()
    org.springframework.data.repository.config.AotRepositoryContext.getBeanName()
    since 4.0, this doesn't really belong in here.
    org.springframework.data.repository.core.support.RepositoryComposition.RepositoryFragments.invoke(Method, Method, Object[])
    org.springframework.data.repository.init.Jackson2RepositoryPopulatorFactoryBean
    since 4.0, in favor of JacksonRepositoryPopulatorFactoryBean.
    org.springframework.data.repository.init.Jackson2ResourceReader
    since 4.0, in favor of JacksonResourceReader.
    org.springframework.data.util.ParameterTypes
    since 4.0, this class is not intended for public use and will be removed in future versions.
    org.springframework.data.util.Predicates.IS_HIBERNATE_MEMBER
    org.springframework.data.web.config.SpringDataJacksonConfiguration
    since 4.0, in favor of SpringDataJackson3Configuration which uses Jackson 3.
    org.springframework.data.web.config.SpringDataJacksonModules
    since 4.0, in favor of SpringDataJackson3Configuration which uses Jackson 3.
    org.springframework.data.web.ProjectingJackson2HttpMessageConverter
    since 4.0, in favor of ProjectingJacksonHttpMessageConverter.
  • Deprecated Interfaces
    Interface
    Description
    org.springframework.data.aot.AotContext.IntrospectedBeanDefinition
    since 4.0 as this isn't widely used and can be easily implemented within user code.
    org.springframework.data.aot.AotContext.TypeIntrospector
    since 4.0 as this isn't widely used and can be easily implemented within user code.
    org.springframework.data.web.config.SpringDataJacksonModules
    since 4.0, in favor of SpringDataJackson3Configuration which uses Jackson 3.
  • Deprecated Classes
    Class
    Description
    org.springframework.data.domain.Sort.TypedSort
    since 4.1 in favor of Sort.by(org.springframework.data.core.TypedPropertyPath...)
    org.springframework.data.geo.GeoModule
    since 4.0, use GeoJacksonModule instead.
    org.springframework.data.repository.init.Jackson2RepositoryPopulatorFactoryBean
    since 4.0, in favor of JacksonRepositoryPopulatorFactoryBean.
    org.springframework.data.repository.init.Jackson2ResourceReader
    since 4.0, in favor of JacksonResourceReader.
    org.springframework.data.transaction.ChainedTransactionManager
    since 2.5
    org.springframework.data.util.MethodInvocationRecorder
    since 4.1 in favor of PropertyReference and TypedPropertyPath infrastructure and limitations imposed by subclass proxy limitations.
    org.springframework.data.util.NullableUtils
    since 4.0 in favor of Nullness fully using JSpecify annotations instead of Spring Framework's own @Nullable and @NonNullApi annotations.
    org.springframework.data.util.ParameterTypes
    since 4.0, this class is not intended for public use and will be removed in future versions.
    org.springframework.data.web.config.SpringDataJacksonConfiguration
    since 4.0, in favor of SpringDataJackson3Configuration which uses Jackson 3.
    org.springframework.data.web.ProjectingJackson2HttpMessageConverter
    since 4.0, in favor of ProjectingJacksonHttpMessageConverter.
  • Deprecated Fields
    Field
    Description
    org.springframework.data.util.Predicates.IS_HIBERNATE_MEMBER
  • Deprecated Methods
    Method
    Description
    org.springframework.data.aot.AotContext.introspectBeanDefinition(String)
    since 4.0, use AotContext.getBeanFactory() and interact with the bean factory directly.
    org.springframework.data.aot.AotContext.introspectBeanDefinition(BeanReference)
    since 4.0, use AotContext.getBeanFactory() and interact with the bean factory directly.
    org.springframework.data.aot.AotContext.introspectType(String)
    since 4.0 as this isn't widely used and can be easily implemented within user code.
    org.springframework.data.aot.AotContext.scanPackageForTypes(Collection<Class<? extends Annotation>>, Collection<String>)
    since 4.0, use AotContext.getTypeScanner() directly
    org.springframework.data.convert.PropertyValueConverterRegistrar.registerConverter(Class<T>, Function<T, S>)
    since 4.1, use PropertyValueConverterRegistrar.registerConverter(PropertyReference) instead.
    org.springframework.data.domain.Sort.sort(Class<T>)
    since 4.1 in favor of Sort.by(TypedPropertyPath[]).
    org.springframework.data.expression.ValueEvaluationContext.getRequiredEvaluationContext()
    since 4.0, EvaluationContext is always provided.
    org.springframework.data.repository.config.AotRepositoryContext.getBasePackages()
    since 4.0, use AotRepositoryContext.getConfigurationSource() and call RepositoryConfigurationSource.getBasePackages()
    org.springframework.data.repository.config.AotRepositoryContext.getBeanName()
    since 4.0, this doesn't really belong in here.
    org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport.registerBeanDefinitions(AnnotationMetadata, BeanDefinitionRegistry)
    since 2.2, call RepositoryBeanDefinitionRegistrarSupport.registerBeanDefinitions(AnnotationMetadata, BeanDefinitionRegistry, BeanNameGenerator) instead.
    org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport.getModulePrefix()
    since 3.0, refer to RepositoryConfigurationExtension.getModuleIdentifier() instead and implement either RepositoryConfigurationExtensionSupport.getModuleName() directly or both methods if the default translation from name to identifier as defined in RepositoryConfigurationExtension.getModuleIdentifier() doesn't suit you.
    org.springframework.data.repository.core.support.RepositoryComposition.RepositoryFragments.invoke(Method, Method, Object[])
    org.springframework.data.repository.core.support.RepositoryFactorySupport.getEntityInformation(Class<T>)
    since 4.0, use RepositoryFactorySupport.getEntityInformation(RepositoryMetadata) instead.
    org.springframework.data.repository.query.QueryMethod.createParameters(ParametersSource)
    since 3.5, use QueryMethod(Method, RepositoryMetadata, ProjectionFactory, Function) instead.
    org.springframework.data.util.ReflectionUtils.findRequiredMethod(Class<?>, String, Class<?>...)
    since 3.5, use ReflectionUtils.getRequiredMethod(Class, String, Class[]) instead.
    org.springframework.data.web.SlicedResourcesAssembler.toEmptyModel(Slice<?>, Class<?>, Optional<Link>)
  • Deprecated Constructors
    Constructor
    Description
    org.springframework.data.repository.query.QueryMethod(Method, RepositoryMetadata, ProjectionFactory)
    since 3.5, use QueryMethod(Method, RepositoryMetadata, ProjectionFactory, Function) instead.

Copyright © 2011–2026 Pivotal Software, Inc.. All rights reserved.