The problem seems to be the generic super class.
See https://github.com/hibernate/hibernate-orm/pull/6067 for reproduction.