Java Reference
In-Depth Information
Figure 10.7. Standard layout for all Grails applications. Adherence to convention over configuration makes it easy
to find the various components, from controllers to services to domain classes to views.
Grails domain classes are normally written in Groovy, though that's not required. In the
application shown in the next listing, a quest has a name and is associated with many tasks
and knights.
Listing 10.12. The
Quest
domain class
class
Quest {
String name
String toString() { name }