O'Reilly logo

Lift Application Development Cookbook by Gilberto T. Garcia Jr.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Working with Record

In this chapter, we will cover the following topics:

  • Configuring a connection to a database using Squeryl
  • Mapping a table to a Scala class
  • Migrating a database using Liquibase
  • Creating one-to-many relationships
  • Creating many-to-many relationships
  • Paginating result sets using Record
  • Testing your application using an in-memory database

Introduction

In the previous chapter, we learned how to store data in a database and how to work with this stored data. However, Mapper is not the only persistent layer available in Lift. In fact, there is another one, named Record.

In this chapter, we will learn how to use Record to integrate Lift with Squeryl, which is an ORM and DSL (Domain-specific language), for Scala. Unlike other ORM frameworks ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required