morphia icon indicating copy to clipboard operation
morphia copied to clipboard

errorr in grails

Open isoloist opened this issue 12 years ago • 2 comments
trafficstars

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) {

isoloist avatar Jun 09 '13 10:06 isoloist

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 .

jmkgreen avatar Jun 09 '13 15:06 jmkgreen

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.

isoloist avatar Jun 12 '13 05:06 isoloist