Blog
Grails logging/printing native SQL queries
30 Nov, 13

Grails logging/printing native SQL queries

Grails provide you to log all the hibernate queries by setting logSql=true in the DataSource.groovy file like: environments { development { dataSource { ... logSql = true } } ... But native SQL queries are not logged. To log the SQL queries add groovy.sql in you log4j...
generate link in grails services
26 Nov, 13

generate link in grails services

We can easily generate links in grails controllers, gsps and tag libraries using g.link method of grails tag library. But tag libraries are not accessible in the grails services. Grails provide us grailsLinkGenerator bean to create link in grails services. First...
Schedule quartz jobs
31 Oct, 13

Schedule quartz jobs

In my previous post here I demonstrated how to register a quartz job and trigger it manually. Now it’s time to move ahead and schedule quartz jobs with cron expression. Like I had created a generic class for manual jobs let’s create one for schedule jobs....
Lambda expressions with Java 8
30 Oct, 13

Lambda expressions with Java 8

Recently, Java 8 has surfaced with support for Lambda expressions. Being a coding enthusiast I just couldn’t hold back my curiosity and got busy with it. After reading official docs and random coding I found it quite easy and interesting enough. It’s one...
AngularJs with Jade mixing problem
3 Oct, 13

AngularJs with Jade mixing problem

I’ve been struck with a strange problems from last few days, and all my tweaks resulted in vain, finally got to resolve it. Since, I’m still not much adapted to the idea of writing jade and debugging, I thought why not simply write those codes in html and...