Chapter 4 Building Relationships

In this iteration, we will be adding more domain classes and defining the relationships between them.

The event is key to the TekDays application, but we can’t have an event without that visionary individual who steps up to organize it and the enthusiastic volunteers who help bring it about. Organizers and volunteers are two roles that users of TekDays will play.

The same user can be an organizer of one event and a volunteer on one or more others. The TekDays domain model will have to reflect these relationships, but it takes more than one to form a relationship. So, we’ll start by adding another domain class.

Get Grails 2: A Quick-Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.