Now that we have learned how to create a connection to the database using Squeryl and Record, it is time to learn how to map database tables to Scala classes.
Since the project from the previous recipe has the connection already configured, we are going to use it. If for any reason you didn't have the connection to the database configured, please follow the Configuring a connection to a database using Squeryl recipe in this chapter.
contactsin the database using the following SQL code snippet:
create table contacts ( id serial not null primary key, name varchar(100) not null )
modelpackage, with the following code snippet: ...