morphia
morphia copied to clipboard
errorr in grails
the plugin will raise an error
.grails/2.2.1/projects/cupid_2/plugins/mongodb-morphia-0.8.0/src/groovy/grails/plugins/mongodb/ast/MongoDomainASTTransformation.groovy: 174: Mixing private and public/protected methods of the same name causes multimethods to be disabled and is forbidden to avoid surprising behaviour. Renaming the private methods will solve the problem. @ line 174, column 3. private PropertyNode getProperty(ClassNode classNode, String propertyName) {
That does not look like a Morphia class though?
On 9 June 2013 11:57, kexiaocheng [email protected] wrote:
the plugin will raise an error
.grails/2.2.1/projects/cupid_2/plugins/mongodb-morphia-0.8.0/src/groovy/grails/plugins/mongodb/ast/MongoDomainASTTransformation.groovy: 174: Mixing private and public/protected methods of the same name causes multimethods to be disabled and is forbidden to avoid surprising behaviour. Renaming the private methods will solve the problem. @ line 174, column 3. private PropertyNode getProperty(ClassNode classNode, String propertyName) {
— Reply to this email directly or view it on GitHubhttps://github.com/jmkgreen/morphia/issues/72 .
It's a Morphia class,but the method name is comflicts with another method. I have tried to change this method name to such as getPropertyNode, then everything will be ok.