Postgresql grails postgres消息:错误:此.id的列不存在

Postgresql grails postgres消息:错误:此.id的列不存在,postgresql,grails,Postgresql,Grails,grails和postgres用于用户域 Message: ERROR: column this_.id does not exist 我明白了。 对于用户域,我将postgres表设置为“User”。所以在默认情况下,当它试图查询用户表时,它不会使用“user.id”进行查询。“用户”表的postgres有问题 因此,我将我的“用户”表更新为“我的应用程序用户”表。问题解决了。dbms可能会保留“用户”一词 static mapping = { table '`User`'

grails和postgres用于用户域

 Message: ERROR: column this_.id does not exist
我明白了。 对于用户域,我将postgres表设置为“User”。所以在默认情况下,当它试图查询用户表时,它不会使用“user.id”进行查询。“用户”表的postgres有问题


因此,我将我的“用户”表更新为“我的应用程序用户”表。问题解决了。

dbms可能会保留“用户”一词

static mapping = {
    table '`User`'
    password column: '`password`'
}