"mappedBy" is a static map which is used to determine and change the way two associated domain classes interact with each other. Let's start with the role of "mappedBy" in one-to-many relationships. Consider the following Example:- [code]class Team { static hasMany = [members: TeamMember] }[/code] ...
We’ve been talking about it for a while and finally GrailsConf 2015 went fabulously well. It was an amazing conference, packed with sessions from an eminent lineup of speakers and over 160 participants who gathered at The Indian Habitat Centre, New Delhi. The gathering was of mostly Java and Groovy developers. I noticed many Java...
To a beginner writing unit tests may seem to be an overhead and a low productive affair. But this could be due to the way he chooses to write tests. One can quite easily be productive at writing unit test cases as well. Following are a few things that I follow to write the spock unit tests cases in the grails application. I hope these...
In the previous blog Grails performance optimization - Unique constraint we have optimized Grails unique constraint. Now in this blog we will check another use case and will optimize unique constraint according to it. Suppose we have two domains having the following structure: [code] class Address { String addressLine1 String...
Here I am going to share one of the cool grails command that I discovered today i.e “grails stats”. This command provides basic statistics about the current grails application including the number of files and lines of code. So, I tried this command in my grails project and see what I got. > grails stats Anybody looking at...
The day finally arrived for which we crossed couple of continents. The onening day of the GGX conference went beyond our expectations and had just the right blend of enthusiasm from the presenters and the audience alike. All the while we were travelling to the venue, we had an inkling that something new was about to be experienced.. and...
Restricting concurrent sessions for a single user is a very common requirement for any software tool which requires licensing based on number of users. You can read about how we can manage (or allow) concurrent sessions with Grails 2 using Spring security plugin in this awesome concise blog here. let us see how we can allow or...
We're glad to announce the Call for Papers for GrailsConf 2015. Submit your talks about Groovy, Grails, Gradle, Spock and other GR8 technologies here. This is open for limited period of time so hurry up! About GrailsConf: Grails Conf is the biggest Grails Conference in India. It is an independent conference dedicated to the...
The final day of SpirngOne 2GX went just like a Mega Finale where they kept best for the last. There were only 3 sessions today, but each one was like one of the best. Here the few highlights of the sessions # Micro Service Architecture with Spring Boot and Groovy : Marco Vermeulen Beautifully explained the concept of micro...
Day 3 started sharp at 7:30 with the breakfast and then the sessions started from 8:30 AM and continued till 6:00 PM. The day was jam packed with varying sessions on Groovy, Grails, performance optimisation and the "Groovy puzzlers show" (Yes, it was a show ;) ). The highlights of the day were: # Microservice Architecture With...
Day 2 kicked off and we had very really cool sessions planned around Groovy, Grails and Spring Boot. It was quite an experience listening to all the new features and changes coming over the horizon of Groovy and Grails. A quick excerpt of the day follows: # Groovy in 2014 and beyond : Guillaume Laforge Groovy trait took over the...
The much awaited conference of the Java ecosystem "SpringOne 2GX" started in Dallas at the Omni Dallas Hotel with a jam packed hall full of eager registrants. The hall was fully packed pretty soon with 1000+ attendees and we talked to around 250+ people about IntelliGrape, Grails and the amazing work we do at IntelliGrape. We were amazed...