When forcing a version increment on an entity mapped with joined-subclass, the generated SQL will be incorrect if the subclass has a different ID column than the parent.
java.sql.SQLSyntaxErrorException: ORA-00904: "PHONE_ID": invalid identifier
The full stack trace can be found in the attached file. Basically, hibernate tries to use the ID column for the subclass table when building the update statement (PHONE_ID in this case) but since the update is being performed on the root table, the column does not exist and the update fails.
This bug was previously reported as but was closed for not including a test case. We have been using the patch attached to that bug successfully in our application.