I used the Grails create-script command to create my own custom script for rendering source code artifacts based on a GORM domain object. I want to generate a command object that contains the properties of the domain object. I see the properties and methods on the GroovyScriptCommand and TemplateRenderer, but I can't tell how to get a reference to the domain object properties or how to render them in my scaffolding templates. I tried forClass(model.fullName) but it says ClassNotFounException. I also tried install-templates, but that command no longer installs templates that render any object properties.
0条回答
相关问题
- Grails External Configuration. Can't access to
- grails unit test + Thread
- Does the multiple datasource feature of Grails 2.0
- JMS Job queue with Grails
- Grails: SpringSecurity roleHierarchy not working a
相关文章
- Grails: How to make everything I create Upper Case
- What does mean Hibernate's “unsaved-value mapp
- Grails and Quartz: Bad value for type long
- Sending JSON to javascript on GSP
- Grails application is not found after updating to
- How to save to a file system directory in Grails
- Groovy can't compile the code from a solution
- Grails: what are the main issues (and his solution