Class AnnotationMetaEntity
- java.lang.Object
-
- org.hibernate.processor.annotation.AnnotationMeta
-
- org.hibernate.processor.annotation.AnnotationMetaEntity
-
- All Implemented Interfaces:
ImportContext,Metamodel
public class AnnotationMetaEntity extends AnnotationMeta
Class used to collect meta information about an annotated type (entity, embeddable or mapped superclass). Also repurposed for any type with "auxiliary" annotations like@NamedQuery,@FetchProfile,@Find, or@HQL. We do not distinguish these two kinds of thing, since an entity class may@NamedQueryor@FetchProfileannotations. Entities may not, however, have methods annotated@Findor@HQL, since entity classes are usually concrete classes.
-
-
Constructor Summary
Constructors Constructor Description AnnotationMetaEntity(TypeElement element, Context context, boolean managed, boolean jakartaDataStaticMetamodel)
-
Method Summary
-
-
-
Constructor Detail
-
AnnotationMetaEntity
public AnnotationMetaEntity(TypeElement element, Context context, boolean managed, boolean jakartaDataStaticMetamodel)
-
-
Method Detail
-
create
public static AnnotationMetaEntity create(TypeElement element, Context context)
-
create
public static AnnotationMetaEntity create(TypeElement element, Context context, boolean lazilyInitialised, boolean managed, boolean jakartaData)
-
getEntityAccessTypeInfo
public AccessTypeInformation getEntityAccessTypeInfo()
-
getContext
public final Context getContext()
-
isImplementation
public boolean isImplementation()
Description copied from interface:MetamodelIs this an implementation of a repository interface?
-
isJakartaDataStyle
public boolean isJakartaDataStyle()
Description copied from interface:MetamodelIs it a Jakarta Data style metamodel interface?
-
isInitialized
public boolean isInitialized()
-
getSimpleName
public final String getSimpleName()
-
getQualifiedName
public final String getQualifiedName()
-
getSupertypeName
public @Nullable String getSupertypeName()
-
getPackageName
public String getPackageName()
-
getMembers
public List<MetaAttribute> getMembers()
-
isMetaComplete
public boolean isMetaComplete()
-
mergeInMembers
public void mergeInMembers(Metamodel other)
-
generateImports
public final String generateImports()
-
importType
public final String importType(String fqcn)
Description copied from interface:ImportContextAdd fqcn to the import list. Returns fqcn as needed in source code. Attempts to handle fqcn with array and generics references.e.g.
java.util.Collection<org.marvel.Hulk>importsjava.util.Collectionand returnsCollectionorg.marvel.Hulk[]importsorg.marvel.Hulkand returnsHulk- Parameters:
fqcn- Fully qualified class name of the type to import.- Returns:
- import string
-
getElement
public final TypeElement getElement()
-
isInjectable
public boolean isInjectable()
Description copied from interface:MetamodelCan this be injected into things?
-
scope
public String scope()
Description copied from interface:MetamodelWhat is its CDI scope for injection?
-
init
protected final void init()
-
getSessionVariableName
protected String getSessionVariableName()
- Overrides:
getSessionVariableNamein classAnnotationMeta
-
message
public void message(Element method, String message, Diagnostic.Kind severity)
-
message
public void message(Element method, AnnotationMirror mirror, String message, Diagnostic.Kind severity)
-
message
public void message(Element method, AnnotationMirror mirror, AnnotationValue value, String message, Diagnostic.Kind severity)
-
inheritedAnnotations
public List<AnnotationMirror> inheritedAnnotations()
-
-