我有 4 节课
class Process {
String status
}
class Request {
String status = "incomplete"
belongsTo = [parent: Parent]
}
class Response {
String status = "incomplete"
static belongsTo = [parent: Parent]
}
class Confirmation {
String status = "incomplete"
static belongsTo = [parent: Parent]
}
然后请求、响应或确认的状态将被更新。
如何使用其他三个类的最后更新状态来自动更新 Process.status ?
是否有特定的 grails 方式来实现这一目标?