我使用grails 2.1.2开发了应用程序,然后升级到2.2.0
我有一个域类
class Concurrence {
Concurrence parent = null
Request request
Person approver
int status = 0
Date processed = null
}
class Request {
String no
Folder folder
String fiscalYear
String notes
static hasOne = [category: Category, channel : Channel]
Date created
Date submitted = null
Date approved = null
Date updated
Person requestor
int status = 0
boolean deleted = false
Person processedBy = null
boolean processed = false
Date processedDate = null
static hasMany = [documents:RequestDocument, concurrences:Concurrence, approvals:Approval, finalApprovals:FinalApproval, memos:Memo]
}
在Concurrence
上有一个属性'请求'以前一切正常,但在我使用grails 2.2.0之后,该域名无法保存,
字段'request_id'没有默认值
任何建议如何解决这个问题?或者我必须降级到2.1.2或重命名请求属性名称?
最好的问候