Class JPAMetaModelEntityProcessor

  • All Implemented Interfaces:
    javax.annotation.processing.Processor

    @SupportedAnnotationTypes({"javax.persistence.Entity","javax.persistence.MappedSuperclass","javax.persistence.Embeddable"})
    @SupportedOptions({"debug","persistenceXml","ormXml","fullyAnnotationConfigured","lazyXmlParsing","addGenerationDate","addGeneratedAnnotation","addSuppressWarningsAnnotation"})
    public class JPAMetaModelEntityProcessor
    extends javax.annotation.processing.AbstractProcessor
    Main annotation processor.
    • Field Detail

      • PERSISTENCE_XML_OPTION

        public static final java.lang.String PERSISTENCE_XML_OPTION
        See Also:
        Constant Field Values
      • FULLY_ANNOTATION_CONFIGURED_OPTION

        public static final java.lang.String FULLY_ANNOTATION_CONFIGURED_OPTION
        See Also:
        Constant Field Values
      • LAZY_XML_PARSING

        public static final java.lang.String LAZY_XML_PARSING
        See Also:
        Constant Field Values
      • ADD_GENERATION_DATE

        public static final java.lang.String ADD_GENERATION_DATE
        See Also:
        Constant Field Values
      • ADD_GENERATED_ANNOTATION

        public static final java.lang.String ADD_GENERATED_ANNOTATION
        See Also:
        Constant Field Values
      • ADD_SUPPRESS_WARNINGS_ANNOTATION

        public static final java.lang.String ADD_SUPPRESS_WARNINGS_ANNOTATION
        See Also:
        Constant Field Values
    • Constructor Detail

      • JPAMetaModelEntityProcessor

        public JPAMetaModelEntityProcessor()
    • Method Detail

      • init

        public void init​(javax.annotation.processing.ProcessingEnvironment env)
        Specified by:
        init in interface javax.annotation.processing.Processor
        Overrides:
        init in class javax.annotation.processing.AbstractProcessor
      • getSupportedSourceVersion

        public javax.lang.model.SourceVersion getSupportedSourceVersion()
        Specified by:
        getSupportedSourceVersion in interface javax.annotation.processing.Processor
        Overrides:
        getSupportedSourceVersion in class javax.annotation.processing.AbstractProcessor
      • process

        public boolean process​(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
                               javax.annotation.processing.RoundEnvironment roundEnvironment)
        Specified by:
        process in interface javax.annotation.processing.Processor
        Specified by:
        process in class javax.annotation.processing.AbstractProcessor