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:
@@ -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 {
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user