|
I ran into a roadblock with GORM recently and I decided to try my hand at modifying the Grails sources to test out a possible fix. More on that later (if I get it to work.) For now, I figured I’d post a simple recipe the will enable you to (a) quickly build Grails from where it lives on github, and (b) start modifying the sources. This will work for you if you work in a Unixy dev environment. If you’re on Windows you can always download Cygwin. |
|
In one of the projects, we had used Query Caching to improve the performance. However, it also meant that the updates/inserts into a table did not get reflected immediately, ie something like Tags: grails; hibernate; cache; |
|
just finished developing a simple query engine with Grails 1.2.1 for one of my clients. As usually, Grails did most of the hard work. The requirement was to provide a query engine for customer-specific flat files that contained all information about transactions that occurred in the last year. Previously the flat files were delivered to the clients as Microsoft Access binary files. The problem was that the clients never took the initiative to write apps to search and aggregate the information. So I was brought in to use Grails to rapidly develop a web application that provided search and aggregation of the client-specific web flat files. |
|
I have a grails app that I am building and wanted try out using mongodb sense i have heard so many good things about it. The quick start guide doesn’t give you and helpful hints on how to map current domain classes to use mongodb. It only helps you create new domain classes to use mongo. |
|
This tutorial will give the readers an overview of the Grails Object Relational Mapping (GORM). They will also see the building of a GORM model using domain classes. |
|
Builders are a powerful feature of Groovy and the Groovy libraries provide us with easier means of developing our own builders. In this tutorial, we will look at some of the ways in which we can use Groovy and the MOP to create our own builder classes. |
|
Thanks to the documentation provided on Adam Goucher's blog I've created a simple Firefox plugin that extends the Selenium IDE and adds formatters that allow you to export a script as a Grails Selenium RC test case. You have the option of JUnit 3 (extends GroovyTestCase, uses assertEquals) or JUnit 4 (doesn't extend anything, uses annotations and assertThat) formats. |
|
Imagine a nice simple Grails app - Foo1Controller and Foo2Controller both have a BarService property, auto injected by name as Grails likes to do. Tags: grails; controller; spring; |
|
In Groovy we can use the toListString() method to get a String representation for a given collection. And since Groovy 1.7.3 we can use a parameter to determine a maximum size of the resulting String. This value is used to stop the String representation after approximately the given size and append three dots (...) to the result. |
|
Groovy 1.7.3 adds new functionality to the String class. For example we can use the expand() method to expand tabs in a String to spaces with a default tab stop size of 8. We can use a parameter to use a different tab stop size. But we can also go the other way around. |