Same here for MySQL 5.5.40. In the generated SQL only the topmost entity was quoted and its simple class name was used (because it is abstract and have no discriminator value).
I tried to remove @DiscriminatorColumn and @DiscriminatorValue annotations but got even more cryptic exception without actual SQL:
Note that PurchaseTransaction is the entity type I am asking for.
Now I have to switch to InheritanceType.SINGLE_TABLE.
Sad that such a basic feature is broken in the Hibernate, the most used JPA implementation.
|