3
grails與用戶域的postgres。grails postgres消息:錯誤:列this_.id不存在
Message: ERROR: column this_.id does not exist
grails與用戶域的postgres。grails postgres消息:錯誤:列this_.id不存在
Message: ERROR: column this_.id does not exist
得到了問題。 對於用戶域,我已將postgres作爲「用戶」。所以默認情況下,當它試圖查詢用戶表時,它不會用「user.id」查詢。 「用戶」表的postgres有問題。
因此,我將我的「用戶」表更新爲「myapp_user」表。問題解決了。
單詞'user'可能被dbms保留。
static mapping = {
table '`User`'
password column: '`password`'
}