Class HibernateProcessor

  • All Implemented Interfaces:
    Processor
    Direct Known Subclasses:
    JPAMetaModelEntityProcessor

    @SupportedAnnotationTypes({"jakarta.persistence.Entity","jakarta.persistence.MappedSuperclass","jakarta.persistence.Embeddable","jakarta.persistence.NamedQuery","jakarta.persistence.NamedQueries","jakarta.persistence.NamedNativeQuery","jakarta.persistence.NamedNativeQueries","jakarta.persistence.NamedEntityGraph","jakarta.persistence.NamedEntityGraphs","jakarta.persistence.SqlResultSetMapping","jakarta.persistence.SqlResultSetMappings","org.hibernate.annotations.FetchProfile","org.hibernate.annotations.FetchProfiles","org.hibernate.annotations.FilterDef","org.hibernate.annotations.FilterDefs","org.hibernate.annotations.NamedQuery","org.hibernate.annotations.NamedQueries","org.hibernate.annotations.NamedNativeQuery","org.hibernate.annotations.NamedNativeQueries","org.hibernate.annotations.processing.HQL","org.hibernate.annotations.processing.SQL","org.hibernate.annotations.processing.Find","jakarta.data.repository.Repository"})
    @SupportedOptions({"debug","persistenceXml","ormXml","fullyAnnotationConfigured","lazyXmlParsing","addGenerationDate","addGeneratedAnnotation","addSuppressWarningsAnnotation","suppressJakartaDataMetamodel","include","exclude"})
    public class HibernateProcessor
    extends AbstractProcessor
    Main annotation processor.
    • Field Detail

      • PERSISTENCE_XML_OPTION

        public static final String PERSISTENCE_XML_OPTION
        Path to a persistence.xml file
        See Also:
        Constant Field Values
      • FULLY_ANNOTATION_CONFIGURED_OPTION

        public static final String FULLY_ANNOTATION_CONFIGURED_OPTION
        Controls whether the processor should consider XML files
        See Also:
        Constant Field Values
      • LAZY_XML_PARSING

        public static final String LAZY_XML_PARSING
        Controls whether the processor should only load XML files when there have been changes
        See Also:
        Constant Field Values
      • ADD_GENERATED_ANNOTATION

        public static final String ADD_GENERATED_ANNOTATION
        Whether the jakarta.annotation.Generated annotation should be added to the generated classes
        See Also:
        Constant Field Values
      • ADD_SUPPRESS_WARNINGS_ANNOTATION

        public static final String ADD_SUPPRESS_WARNINGS_ANNOTATION
        A comma-separated list of warnings to suppress, or simply true if @SuppressWarnings({"deprecation","rawtypes"}) should be added to the generated classes.
        See Also:
        Constant Field Values
      • SUPPRESS_JAKARTA_DATA_METAMODEL

        public static final String SUPPRESS_JAKARTA_DATA_METAMODEL
        Option to suppress generation of the Jakarta Data static metamodel, even when Jakarta Data is available on the build path.
        See Also:
        Constant Field Values
      • INCLUDE

        public static final String INCLUDE
        Option to include only certain types, according to a list of patterns. The wildcard character is *, and patterns are comma-separated. For example: *.entity.*,*Repository. The default include is simply *, meaning that all types are included.
        See Also:
        Constant Field Values
      • EXCLUDE

        public static final String EXCLUDE
        Option to exclude certain types, according to a list of patterns. The wildcard character is *, and patterns are comma-separated. For example: *.framework.*,*$$. The default exclude is empty.
        See Also:
        Constant Field Values
    • Constructor Detail

      • HibernateProcessor

        public HibernateProcessor()