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...
Grails oauth plugin is an awesome plugin, using this you can integrate your application with several sites that provide oauth support. Following are the simple steps to integrate LinkedIn in you grails application: Step 1 : Install the Oauth plugin Open...
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...
Grails domain classes has beforeInsert and beforeUpdate method that get fired before domain object is going to saved or updated respectively. class Person { def securityService String name Date signupDate String lastUpdatedBy def beforeInsert() { signupDate = new...
Recent Comments