when CDI is missing, don't create default constructor for injection
Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
b2e572fc30
commit
01ee8eacd8
|
@ -535,7 +535,8 @@ public class AnnotationMetaEntity extends AnnotationMeta {
|
|||
sessionType = HIB_STATELESS_SESSION;
|
||||
addDaoConstructor( null );
|
||||
}
|
||||
if ( jakartaDataRepository && !quarkusInjection ) {
|
||||
if ( jakartaDataRepository && !quarkusInjection
|
||||
&& context.addDependentAnnotation() ) {
|
||||
addDefaultConstructor();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue