【发布时间】:2015-10-29 06:58:50
【问题描述】:
用于用户域的带有 postgres 的 grails。
Message: ERROR: column this_.id does not exist
【问题讨论】:
标签: postgresql grails
用于用户域的带有 postgres 的 grails。
Message: ERROR: column this_.id does not exist
【问题讨论】:
标签: postgresql grails
有问题。 对于用户域,我将 postgres 表设置为“用户”。因此,默认情况下,当它尝试查询用户表时,它不会使用“user.id”进行查询。 “用户”表的 postgres 有问题。
所以我将“user”表更新为“myapp_user”表。问题解决了。
【讨论】:
“用户”一词可能被 dbms 保留。
static mapping = {
table '`User`'
password column: '`password`'
}
【讨论】: