【发布时间】:2015-12-11 08:22:21
【问题描述】:
这是我的模型。
class Review {
String review
Date date
int numberOfComments
String status
static belongsTo = [game:Game, user:User]
static hasMany=[comment:Comment]
static mapping ={
numberOfComments defaultValue: "0"
review type: 'text'
}
static constraints = {
}
当我输入 400 个字符的文本时,它产生了这个错误
我不知道为什么评论类型:“文本”不起作用。有人可以帮忙吗?
【问题讨论】:
标签: grails grails-orm