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

Deprecated API

Contents

  • Interfaces
  • Classes
  • Annotation Interfaces
  • Methods
  • Constructors
  • Deprecated Interfaces
    Interface
    Description
    org.springframework.data.type.classreading.MethodsMetadataReader
    since 3.0, use MetadataReader to obtain declared methods directly.
    org.springframework.data.type.MethodsMetadata
    since 3.0, use MetadataReader directly to obtain declared methods directly.
  • Deprecated Classes
    Class
    Description
    org.springframework.data.transaction.ChainedTransactionManager
    since 2.5
    org.springframework.data.type.classreading.MethodsMetadataReaderFactory
    since 3.0. Use SimpleMetadataReaderFactory directly.
  • Deprecated Annotation Interfaces
    Annotation Interface
    Description
    org.springframework.data.annotation.PersistenceConstructor
    in favor of PersistenceCreator since 3.0, to be removed in 3.1
  • Deprecated Methods
    Method
    Description
    org.springframework.data.mapping.model.MappingInstantiationException.getConstructor()
    since 3.0, use MappingInstantiationException.getEntityCreator() instead.
    org.springframework.data.mapping.PersistentEntity.getPersistenceConstructor()
    since 3.0, use PersistentEntity.getInstanceCreatorMetadata().
    org.springframework.data.mapping.PersistentEntity.isConstructorArgument(PersistentProperty<?>)
    since 3.0, use PersistentEntity.isCreatorArgument(PersistentProperty) instead.
    org.springframework.data.mapping.PersistentPropertyAccessor.getProperty(PersistentPropertyPath<? extends PersistentProperty<?>>)
    since 2.3, use PersistentPropertyPathAccessor.getProperty(PersistentPropertyPath) instead
    org.springframework.data.mapping.PersistentPropertyAccessor.getProperty(PersistentPropertyPath<? extends PersistentProperty<?>>, TraversalContext)
    since 2.3, use PersistentPropertyPathAccessor.getProperty(PersistentPropertyPath, org.springframework.data.mapping.AccessOptions.GetOptions) instead.
    org.springframework.data.mapping.PersistentPropertyAccessor.setProperty(PersistentPropertyPath<? extends PersistentProperty<?>>, Object)
    since 2.3, use PersistentPropertyPathAccessor.setProperty(PersistentPropertyPath, Object) instead.
    org.springframework.data.mapping.PreferredConstructor.isConstructorParameter(PersistentProperty<?>)
    since 3.0, use InstanceCreatorMetadata.isCreatorParameter(PersistentProperty) instead.
    org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport.registerBeanDefinitions(AnnotationMetadata, BeanDefinitionRegistry)
    since 2.2, call RepositoryBeanDefinitionRegistrarSupport.registerBeanDefinitions(AnnotationMetadata, BeanDefinitionRegistry, BeanNameGenerator) instead.
    org.springframework.data.repository.core.support.RepositoryFactorySupport.getTargetRepositoryViaReflection(Class<?>, Object...)
    since 2.6 because it has a misleading name. Use RepositoryFactorySupport.instantiateClass(Class, Object...) instead.
  • Deprecated Constructors
    Constructor
    Description
    org.springframework.data.querydsl.QPageRequest(int, int)
    since 2.1, use QPageRequest.of(int, int) instead.
    org.springframework.data.querydsl.QPageRequest(int, int, OrderSpecifier<?>...)
    since 2.1, use QPageRequest.of(int, int, OrderSpecifier...) instead.
    org.springframework.data.querydsl.QPageRequest(int, int, QSort)
    since 2.1, use QPageRequest.of(int, int, QSort) instead.
    org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource(AnnotationMetadata, Class<? extends Annotation>, ResourceLoader, Environment, BeanDefinitionRegistry)
    since 2.2. Prefer to use overload taking a BeanNameGenerator additionally.

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