Changing GORM table name
Posted
by Matthias Hryniszak
on Stack Overflow
See other posts from Stack Overflow
or by Matthias Hryniszak
Published on 2010-06-17T22:19:23Z
Indexed on
2010/06/17
22:23 UTC
Read the original article
Hit count: 236
Hi
I'm fighting 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 being issued refer to "schema.login" table instead of "schema.my_table". This is very frustrating... Can anyone answer why this might not be working?
© Stack Overflow or respective owner