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
6c91c0c234
commit
c945b16b4f
|
@ -535,7 +535,8 @@ public class AnnotationMetaEntity extends AnnotationMeta {
|
||||||
sessionType = HIB_STATELESS_SESSION;
|
sessionType = HIB_STATELESS_SESSION;
|
||||||
addDaoConstructor( null );
|
addDaoConstructor( null );
|
||||||
}
|
}
|
||||||
if ( jakartaDataRepository && !quarkusInjection ) {
|
if ( jakartaDataRepository && !quarkusInjection
|
||||||
|
&& context.addDependentAnnotation() ) {
|
||||||
addDefaultConstructor();
|
addDefaultConstructor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue