Consider the following entities:
If I execute the following HQL query:
The SQL below is generated by Hibernate;
This query fails, because the join with the parent class is missing on the update clause. A very simple test case is attached.
Spring boot 2.3.5.RELEASE with JDK 15.0.1
Could you try setting the hibernate.query.omit_join_of_superclass_tables property to false and let me know if that fixes your issue?
Ok, I just checked this out and this is simply not supported yet. This requires support for joins in the DML statement which might come in Hibernate 6.0
H2 supports the MERGE statement which could be used to implement this.