title: Slick and nesting case classes a no go?
body: <p>I am using slick (and the play framework) to build an application on top of an existing database. I cannot change the database structure.</p>
  
  <p>My database has the following 2 tables:</p>
  
  <p>Meeting:</p>
  
  <ul>
  <li>id (PK)</li>
  <li>name</li>
  <li>chairman_id (FK to Person.id)</li>
  <li>houseman_id (FK to Person.id)</li>
  </ul>
  
  <p>Person:</p>
  
  <ul>
  <li>id (pk)</li>
  <li>first_name</li>
  <li>last_name</li>
  </ul>
  
  <p>I wanted to define my case classes like this:</p>
  
  <pre><code>case class Meeting (
    id: Int,
    name: String,
    chairman: Person,
    houseman: Person
  ) 
  
  case class Person (
     id: Int,
     firstName: String,
     lastName: String
  )
  </code></pre>
  
  <p>But from the very minimal slick documentation around this, it looks like I have to keep the ids in the case class rather than using "Person". Is that correct? </p>
  
  <p>Whats the best approach for this? Sorry for the relatively open question, very new to scala, slick and play.</p>
  
  <p>Thanks,</p>
  
  <p>Ed</p>