Changing the name of the GORM table

I fight to get the following mapping working in Grails 1.3.1 and MySQL:

class Login { int id String email static mappings = { table 'my_table' id column: "Mgr_id" version false } } 

No matter what I do, the queries that are issued refer to the table "schema.login" instead of "schema.my_table". This is very frustrating ... Can anyone answer why this might not work?

+4
source share
1 answer

Please forgive my blindness ... The static is called "matching", not "matching" ... a. Shame on me...

+19
source

Source: https://habr.com/ru/post/1313126/


All Articles