Skip to content

Commit c945b16

Browse files
committed
when CDI is missing, don't create default constructor for injection
Signed-off-by: Gavin King <[email protected]>
1 parent 6c91c0c commit c945b16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaEntity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,8 @@ else if ( element.getKind() == ElementKind.INTERFACE
535535
sessionType = HIB_STATELESS_SESSION;
536536
addDaoConstructor( null );
537537
}
538-
if ( jakartaDataRepository && !quarkusInjection ) {
538+
if ( jakartaDataRepository && !quarkusInjection
539+
&& context.addDependentAnnotation() ) {
539540
addDefaultConstructor();
540541
}
541542
}

0 commit comments

Comments
 (0)