com.cmeza.sdgenerator.annotation.SDGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-data-generator Show documentation
Show all versions of spring-data-generator Show documentation
Spring Data Generator for JPA repositories and managers.
package com.cmeza.sdgenerator.annotation;
import com.cmeza.sdgenerator.SDGeneratorManager;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.AliasFor;
import java.lang.annotation.*;
/**
* Created by carlos on 08/04/17.
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@EntityScan
@Import(SDGeneratorManager.class)
public @interface SDGenerator {
String repositoryPackage() default "";
String repositoryPostfix() default "Repository";
Class>[] excludeRepositoriesClasses() default {};
String managerPackage() default "";
String managerPostfix() default "Manager";
Class>[] excludeManagerClasses() default {};
@AliasFor(annotation = EntityScan.class, attribute = "basePackages")
String[] entityPackage() default {};
boolean debug() default false;
boolean onlyAnnotations() default false;
boolean overwrite() default false;
}