org.hibernate.jpamodelgen
Class JPAMetaModelEntityProcessor

java.lang.Object
  extended by javax.annotation.processing.AbstractProcessor
      extended by org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor
All Implemented Interfaces:
Processor

@SupportedAnnotationTypes(value={"javax.persistence.Entity","javax.persistence.MappedSuperclass","javax.persistence.Embeddable"})
@SupportedOptions(value={"debug","persistenceXml","ormXml","fullyAnnotationConfigured","lazyXmlParsing","addGeneratedAnnotation","addSuppressWarningsAnnotation"})
public class JPAMetaModelEntityProcessor
extends AbstractProcessor

Main annotation processor.

Author:
Max Andersen, Hardy Ferentschik, Emmanuel Bernard

Field Summary
static String ADD_GENERATED_ANNOTATION
           
static String ADD_GENERATION_DATE
           
static String ADD_SUPPRESS_WARNINGS_ANNOTATION
           
static String DEBUG_OPTION
           
static String FULLY_ANNOTATION_CONFIGURED_OPTION
           
static String LAZY_XML_PARSING
           
static String ORM_XML_OPTION
           
static String PERSISTENCE_XML_OPTION
           
 
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
 
Constructor Summary
JPAMetaModelEntityProcessor()
           
 
Method Summary
 SourceVersion getSupportedSourceVersion()
           
 void init(ProcessingEnvironment env)
           
 boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnvironment)
           
 
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG_OPTION

public static final String DEBUG_OPTION
See Also:
Constant Field Values

PERSISTENCE_XML_OPTION

public static final String PERSISTENCE_XML_OPTION
See Also:
Constant Field Values

ORM_XML_OPTION

public static final String ORM_XML_OPTION
See Also:
Constant Field Values

FULLY_ANNOTATION_CONFIGURED_OPTION

public static final String FULLY_ANNOTATION_CONFIGURED_OPTION
See Also:
Constant Field Values

LAZY_XML_PARSING

public static final String LAZY_XML_PARSING
See Also:
Constant Field Values

ADD_GENERATION_DATE

public static final String ADD_GENERATION_DATE
See Also:
Constant Field Values

ADD_GENERATED_ANNOTATION

public static final String ADD_GENERATED_ANNOTATION
See Also:
Constant Field Values

ADD_SUPPRESS_WARNINGS_ANNOTATION

public static final String ADD_SUPPRESS_WARNINGS_ANNOTATION
See Also:
Constant Field Values
Constructor Detail

JPAMetaModelEntityProcessor

public JPAMetaModelEntityProcessor()
Method Detail

init

public void init(ProcessingEnvironment env)
Specified by:
init in interface Processor
Overrides:
init in class AbstractProcessor

getSupportedSourceVersion

public SourceVersion getSupportedSourceVersion()
Specified by:
getSupportedSourceVersion in interface Processor
Overrides:
getSupportedSourceVersion in class AbstractProcessor

process

public boolean process(Set<? extends TypeElement> annotations,
                       RoundEnvironment roundEnvironment)
Specified by:
process in interface Processor
Specified by:
process in class AbstractProcessor


Copyright © 2009-2012. All Rights Reserved.