ltd.fdsa.database.jpa.registrar.ScanJpaRepositories Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fast-data-database-jpa Show documentation
Show all versions of fast-data-database-jpa Show documentation
jdbc database starter for spring boot
The newest version!
package ltd.fdsa.database.jpa.registrar;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean;
import org.springframework.data.repository.config.BootstrapMode;
import org.springframework.data.repository.config.DefaultRepositoryBaseClass;
import org.springframework.data.repository.query.QueryLookupStrategy;
import java.lang.annotation.*;
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Import({JpaRepositoriesRegistrar.class})
public @interface ScanJpaRepositories {
String[] value() default {};
String[] basePackages() default {};
Class>[] basePackageClasses() default {};
ComponentScan.Filter[] includeFilters() default {};
ComponentScan.Filter[] excludeFilters() default {};
String repositoryImplementationPostfix() default "Impl";
String namedQueriesLocation() default "";
QueryLookupStrategy.Key queryLookupStrategy() default QueryLookupStrategy.Key.CREATE_IF_NOT_FOUND;
Class> repositoryFactoryBeanClass() default JpaRepositoryFactoryBean.class;
Class> repositoryBaseClass() default DefaultRepositoryBaseClass.class;
String entityManagerFactoryRef() default "entityManagerFactory";
String transactionManagerRef() default "transactionManager";
boolean considerNestedRepositories() default false;
boolean enableDefaultTransactions() default true;
BootstrapMode bootstrapMode() default BootstrapMode.DEFAULT;
char escapeCharacter() default '\\';
}