title: Mapped projection with <> to a case class with companion object in Slick
body: <p>With Slick, I am trying to project database table entries directly to the case class they represent. Following the <a href="http://slick.typesafe.com/doc/1.0.0/lifted-embedding.html#mapped-tables">example in the documentation</a>, I set up a mapped projection using the <code>&lt;&gt;</code> operator:</p>
  
  <pre><code>case class SomeEntity3(id: Int, entity1: Int, entity2: Int)
  
  val SomeEntityTable = new Table[SomeEntity3]("some_entity_table") {
    def id = column[Int]("id", O.PrimaryKey, O.AutoInc)
    def entity1 = column[Int]("entity1")
    def entity2 = column[Int]("entity2")
  
    def * = id ~ entity1 ~ entity2 &lt;&gt; (SomeEntity3, SomeEntity3.unapply _)
  }
  </code></pre>
  
  <p>Now, I'd like to add some static constants and auxiliary methods to SomeEntity3. For that, I create a companion object. But as soon as I include the line</p>
  
  <pre><code>object SomeEntity3
  </code></pre>
  
  <p>a pretty wild multi-line error pops up for the definition of <code>*</code> saying something   illegible about "overloaded method value &lt;> with alternatives".</p>
  
  <p>How does the companion object relate to bi-directional mapping in Slick and can I somehow accomplish my goal?</p>