Grails Service And Controller Interface
B1 It is well advised to place application and business logic in service classes when doing any programming and indeed the Grails user guide does advise this. However the default templates do not do...
View ArticleRender a log or text file with Grails
B1 Thanks to the awesome groovy-ness of groovy this is crazy easy! Controller action: def appLog = { def file = new File("pathToApplicationLog.log") // Success. [log: file.text] } appLog.gsp:...
View ArticleGroovy class contructor with closure
B1 One of the things that Groovy is really great at is creating Domain Specific Languages (DSL) or Builders. When creating a builder I wanted to construct the builder and pass in a closure all in one...
View ArticleGroovy HqlBuilder
B1 I’m not sure if I just like HQL (Hibernate Query Language) because it is so close to SQL or because I don’t get the otherwise fabulous Grails HibernateCriteriaBuilder well enough to be sure of some...
View ArticleGroovy scritps and Db4o
B1 While playing with Groovy and Db4o I ran across a few errors that nearly put me right off Db4o. But after half a day tinkering I have found that it’s not really a problem with Db4o. If you are...
View Article
More Pages to Explore .....