In Grails, is "property" a reserved word? That is, can I name a domain class Property
and have its owner reference it by properties
? Example:
class Thing {
static hasMany = [properties: Property]
}
class Property {
static belongsTo = [thing: Thing]
}
When I try to add a Property
to a Thing
I get the error:
Exception thrown: No signature of method: org.codehaus.groovy.grails.web.binding.DataBindingLazyMetaPropertyMap.add() is applicable for argument types: (Property) values: [Property : null]
groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.grails.web.binding.DataBindingLazyMetaPropertyMap.add() is applicable for argument types: (Property) values: [Property : null]
at ConsoleScript10.run(ConsoleScript10:3)
Is there a list of all Grails reserved words?