We are using two different databases for production (DB2) and testing (MySQL). I have declared my entity as
Note that we have set hibernate.hbm2ddl.auto to update.
Now the following step produces the error: (we are targeting MySQL now)
- Modify the entity structure by adding new column.
- Thus, upon the next start, hibernate will try to update the database model.
- Since we have declared schema name, hibernate will create update query for table "DFT.BUILDVERSION", which is not a valid object for MySQL.