0

有人可以告诉我在以下情况下会发生什么吗?一个 hasMany 会覆盖另一个,还是两者都会受到尊重?

class Parent {
    static hasMany = [attributes: Attribute]
}

class Child extends Parent {
    static hasMany = [games: Game]
}

当我尝试使用与上面类似的代码运行我的应用程序时,它会失败并显示“null”消息,这很有帮助。:)

4

1 回答 1

2

是其他原因导致了问题,而不是实际代码本身。因此,为了回答我的问题,两个 hasMany 关系都在 Child 中得到支持。

于 2013-02-08T19:43:47.003 回答