All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.smartnews.jpa_entity_generator.rule.ClassAnnotationRule Maven / Gradle / Ivy

There is a newer version: 0.99.9
Show newest version
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