By karanar, on March 30th, 2010%
What I enjoy with frameworks like Grails or Rails is that they are taking care of all the object relational mapping for me. So, I can really concentrate on the domain object model and the framework will care about the underlying work. Fortunately, when needed, I can still “talk” to the database directly. Also, with the . . . → Read More: Grails many-to-many & Join table
By karanar, on March 18th, 2010%
Grails has an incredible amount of very useful features, amongst those the dynamic methods on domain objects. When we generate the scaffolding for a controller for a domain object we get the default list method in the controller which uses the list method on the domain object. The list method takes params as argument containing max, . . . → Read More: createCriteria() & withCriteria()
By karanar, on March 15th, 2010%
First my use case. A user inserted a couple of thousands records into a database describing animal samples for a transcriptomics study. In this table there is a column ‘description’ which is for free text. The user made a mistake: among other information in this description column he put ‘rat’ instead of ‘mouse’. So now, how . . . → Read More: Replacing strings in a database using Groovy
By karanar, on January 29th, 2010%
I’m currently working on refactoring an UI/ORM application and the database it connects to. I need to change a lot of things in the db design so I was looking for a simple java tool that would allow me to easily export tables from the database to a defined XML format.
A tool that would produce something . . . → Read More: Exporting a database to XML with Groovy