Grails 1.1 Web Application Development
上QQ阅读APP看书,第一时间看更新

Summary

In this chapter, you have seen that it is possible to create the skeleton of an application by simply defining the domain model. Scaffolding allows you to generate a basic application from the domain classes. Defining constraints to check the validity of the domain model is simple and concise, and best of all the constraints are encapsulated within your domain model. This makes it simpler to understand the domain model by giving extra context when working with the domain.

Constraints also allow some control over the default scaffold application, which means that it is possible to get enough mileage out of scaffolding to make it a feasible option for the first iteration of a rudimentary user interface.

In the next chapter, you will implement the first user goal for the application by allowing users to post messages.