Skip to content

Commit 4cb9d8c

Browse files
committed
add missing import of Event
1 parent 5f50c99 commit 4cb9d8c

File tree

1 file changed

+2
-0
lines changed
  • tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import org.hibernate.processor.model.Metamodel;
99
import org.hibernate.processor.util.Constants;
1010

11+
import static org.hibernate.processor.util.Constants.EVENT;
1112
import static org.hibernate.processor.util.Constants.INJECT;
1213
import static org.hibernate.processor.util.Constants.JD_LIFECYCLE_EVENT;
1314

@@ -38,6 +39,7 @@ public boolean hasStringAttribute() {
3839
@Override
3940
public String getAttributeDeclarationString() {
4041
annotationMetaEntity.importType(INJECT);
42+
annotationMetaEntity.importType(EVENT);
4143
annotationMetaEntity.importType(JD_LIFECYCLE_EVENT);
4244
return "\n@Inject\nprivate Event<? super LifecycleEvent<?>> event;";
4345
}

0 commit comments

Comments
 (0)