I don't override IDs in my subclasses and it fails with the same error.
Here's the repo reproducing the bug: https://github.com/elnur/hibernate-bug