Usually as a developer you are choosing a framework (be it a web framework or for any type of application development) because it already delivers most of the part's you need. Typically, a standard requirement is the support of a persistence layer or technology you are going to use for your project. However, there might be cases where you have to create your own persistence layer, for example, if you are using a proprietary or in-house developed solution or if you need access for a new technology like one of the many available NoSQL databases. There are several steps which need to be completed. All of these are optional; however, it makes sense to develop your own persistence layer as similar to other persistence layers in Play, so you actually make sure it fits best in the concept of Play and is easily understood by most of the users. These steps are:
Active record pattern for your models including bytecode enhancement for finders
Range queries, which...