May 2015
Intermediate to advanced
274 pages
5h 11m
English
The MVC approach talks about the model, view, and controller. We have seen views and controllers in detail in the previous chapters and neglected models to quite an extent. Models are an important part of MVC; the changes made to a model are reflected in the views and controllers using them.
Web applications are incomplete without data transactions. This chapter is about designing models and handling DB transactions in Play.
In this chapter, we will cover the following topics:
A model is a domain object, which maps to database entities. For example, a social networking application has users. The users can register, update their profile, add friends, post links, ...
Read now
Unlock full access