It is not uncommon to come across MySQL databases where reserved words are in use as identifiers for any kind of database objects.
Perhaps when the application schema was implemented, the words were not reserved yet, and they became reserved later on a subsequent MySQL release.
It is a good practice to check reserved words usage prior to doing any database upgrades, as any newly reserved keywords will cause syntax errors on the new version.
This is usually not a problem if proper quoting is used for referencing the objects, as described on the official manual page.
The actual steps to do this depend on the environment; for example, the following can be configured to tell Hibernate to escape identifiers:
property name="hibernate.globally_quoted_identifiers" value="true"
This does …
[Read more]