Java Reference
In-Depth Information
Domain Classes
In Grails, instances of domain classes map to database table rows.
The Grails approach to convention over configuration means that there's a specific direct-
ory for everything, as illustrated in
figure 10.7
. Domain classes have their own directory,
as do controllers, services, and views. This makes it easy to understand a Grails application
you haven't written, because they all store their elements in the same place.