grails - Unable to save a domain class instance from Groovy Console in GGTS -
i creating grails project using groovy/grails tool suite. if choose run >> groovy console, can create sample objects domain classes cannot save them.
so,
new things.thing(height: 20, length: 30) creates new thing, but
new things.thing(height: 20, length: 30).save() throws exception
no signature of method: thing.thing.save() applicable argument types: () values: [] even though respondsto states things respond save().
does know why happening?
that's groovy console, not grails console. use same code , same, grails version hooks application, whereas groovy console has access code. run console, go grails tools | open grails command prompt , enter console in text field.
this gui wrapper running grails console commandline.
Comments
Post a Comment