I\'ve got a situation where I\'m trying to create a table called \'user\' in Postgres, which throws an error due to Hibernate not putting table names in quotes:
You can quote the table name in the mapping block with backticks. Hibernate will convert those to whatever the quoting approach is for the database based on the Dialect:
static mapping = {
table "`user`"
}
You can also just rename the table to something else that doesn't require quoting/escaping, e.g.
static mapping = {
table "users"
}