Chapter 5. Working with Data
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:
- Models
- JDBC
- Anorm
- Slick
- ReactiveMongo
- A Cache API