Align Spring Data JPA annotations with Spring Framework annotations.

Remove @Inherited from Spring Data JPA annotations to align with Spring Framework ones.

Closes #803.
This commit is contained in:
Greg L. Turnquist
2022-06-08 10:23:30 -05:00
parent cbfb0f7a1c
commit 48790adebb
3 changed files with 9 additions and 12 deletions

View File

@@ -15,15 +15,14 @@
*/
package org.springframework.data.envers.repository.config;
import jakarta.persistence.EntityManagerFactory;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import jakarta.persistence.EntityManagerFactory;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.Lazy;
@@ -45,6 +44,7 @@ import org.springframework.transaction.PlatformTransactionManager;
* {@link #repositoryFactoryBeanClass} to {@link EnversRevisionRepositoryFactoryBean}.
*
* @author Mark Paluch
* @author Greg Turnquist
* @since 2.5
* @see EnableJpaRepositories
* @see AliasFor
@@ -52,7 +52,6 @@ import org.springframework.transaction.PlatformTransactionManager;
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@EnableJpaRepositories
public @interface EnableEnversRepositories {

View File

@@ -17,7 +17,6 @@ package org.springframework.data.jpa.repository.config;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@@ -31,8 +30,8 @@ import org.springframework.data.domain.AuditorAware;
*
* @author Thomas Darimont
* @author Oliver Gierke
* @author Greg Turnquist
*/
@Inherited
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@@ -61,8 +60,8 @@ public @interface EnableJpaAuditing {
boolean modifyOnCreate() default true;
/**
* Configures a {@link DateTimeProvider} bean name that allows customizing the {@link java.time.temporal.TemporalAccessor} to be
* used for setting creation and modification dates.
* Configures a {@link DateTimeProvider} bean name that allows customizing the
* {@link java.time.temporal.TemporalAccessor} to be used for setting creation and modification dates.
*
* @return
*/

View File

@@ -15,15 +15,14 @@
*/
package org.springframework.data.jpa.repository.config;
import jakarta.persistence.EntityManagerFactory;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import jakarta.persistence.EntityManagerFactory;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.Import;
@@ -41,11 +40,11 @@ import org.springframework.transaction.PlatformTransactionManager;
*
* @author Oliver Gierke
* @author Thomas Darimont
* @author Greg Turnquist
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Import(JpaRepositoriesRegistrar.class)
public @interface EnableJpaRepositories {