Class DefaultConstructor
java.lang.Object
org.hibernate.processor.annotation.DefaultConstructor
- All Implemented Interfaces:
MetaAttribute
Used by the container to instantiate a Jakarta Data repository.
This is a constructor with no parameters, used to instantiate
a repository which then uses field injection to obtain its
dependencies. By contrast, a
RepositoryConstructor has
a parameter which accepts the session as an argument, allowing
direct instantiation or constructor injection. This class is
only needed because @PersistenceUnit is incompatible
with CDI-style constructor injection.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultConstructor(AnnotationMetaEntity annotationMetaEntity, String constructorName, String methodName, String sessionTypeName, String sessionVariableName, @Nullable String dataStore, boolean addInjectAnnotation) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MetaAttribute
inheritedAnnotations
-
Constructor Details
-
DefaultConstructor
-
-
Method Details
-
hasTypedAttribute
public boolean hasTypedAttribute()- Specified by:
hasTypedAttributein interfaceMetaAttribute
-
hasStringAttribute
public boolean hasStringAttribute()- Specified by:
hasStringAttributein interfaceMetaAttribute
-
getAttributeDeclarationString
- Specified by:
getAttributeDeclarationStringin interfaceMetaAttribute
-
getAttributeNameDeclarationString
- Specified by:
getAttributeNameDeclarationStringin interfaceMetaAttribute
-
getMetaType
- Specified by:
getMetaTypein interfaceMetaAttribute
-
getPropertyName
- Specified by:
getPropertyNamein interfaceMetaAttribute
-
getTypeDeclaration
- Specified by:
getTypeDeclarationin interfaceMetaAttribute
-
getHostingEntity
- Specified by:
getHostingEntityin interfaceMetaAttribute
-