com.smartnews.jpa_entity_generator.rule.ClassAnnotationRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jpa-entity-generator Show documentation
Show all versions of jpa-entity-generator Show documentation
Lombok-wired JPA entity source code generator, Gradle and Maven supported.
package com.smartnews.jpa_entity_generator.rule;
import lombok.Data;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Rule used to generate annotations for a class.
*/
@Data
public class ClassAnnotationRule implements Serializable, ClassMatcher {
private String className;
private List classNames = new ArrayList<>();
private List annotations = new ArrayList<>();
public static ClassAnnotationRule createGlobal(Annotation... annotations) {
ClassAnnotationRule rule = new ClassAnnotationRule();
rule.setAnnotations(Arrays.asList(annotations));
return rule;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy