title: How to merge two case classes and store them as one into a table?
body: <p>I'm using <a href="http://slick.typesafe.com/" rel="nofollow">Slick</a>.</p>
  
  <p>I have two case classes: <code>A</code> and <code>B</code>. I want to combine <code>A</code> and <code>B</code> and store the combination class into a database.</p>
  
  <pre class="lang-scala prettyprint-override"><code>case class A (a: String, b: Int)
  case class B (c: Double, d: Int)
  
  //TODO  class C has the property of A and B
  class C(val a: A, val b: B) {}
  
  //Now I want to create a table for C
  class Tb(tag: Tag) extends Table[C](tag, "a") {
    def col1 = column[String]("k1")
    def col1 = column[Int]("k2")
    def col1 = column[Double]("k3")
    def col1 = column[Int]("k4")
    def * = // TODO How to write * function?!
  }
  </code></pre>
  
  <p>How to fill the <code>TODO</code> in the code above (in the <code>*</code> method)?</p>