I suppose we could probably solve this issue by making jakarta.annotation-api an implementation dependency of hibernate-core, but do we really want an extra dependency just for this?