I just updated to Hibernate 6.3.1 (from 6.2.8) and now all generated classes show up in Eclipse as erroneous because the class jakarta.annotation.Generated, which is used as an annotation in automatically generated classes (by hibernate-jpamodelgen), is missing.
My solution was to explicitly add jakarta.annotation/jakarta.annotation-api to my pom.xml. Shouldn’t this package be automatically required by hibernate-jpamodelgen or am I missing something else?