1
试图回答一个快速问题,没有任何运气在线搜索。Groovy空格分隔的散列图键
我学习Groovy和跨越此代码段上线了:
class Person {
String name
Person parent
static belongsTo = [ supervisor: Person ]
static mappedBy = [ supervisor: "none", parent: "none" ]
static constraints = { supervisor nullable: true }
}
我特别关心Person
类体的最后一行。 { supervisor nullable: true }
是什么意思?那些链接到价值true
什么的多个键?
谢谢!