Hibernate schema validation does not consider table ALIASes in DB2; these aliases are equivalent to SYNONYMs in Oracle. In fact, in DB2, “[SYNONYM is a synonym for ALIAS|https://www.ibm.com/docs/en/db2/11.1?topic=statements-create-synonym]”.
Support for Oracle synonyms was added in the following ticket. This will be a very similar change. [https://hibernate.atlassian.net/browse/HHH-8183|https://hibernate.atlassian.net/browse/HHH-8183|smart-link]
Mention of lack of support in DB2 docs: [https://www.ibm.com/support/pages/jpa-tools-do-not-support-db2-table-aliases|https://www.ibm.com/support/pages/jpa-tools-do-not-support-db2-table-aliases|smart-link] |
|