title: Scala: is not a member of (String, models.Role)
body: <p>I'm working on securing my Scala app. Here's my code:</p>
  
  <pre><code>case class User(id: Option[Long],
      role: Role)
  </code></pre>
  
  <p>I'm trying to get the role of a specific user by doing something like this:</p>
  
  <pre><code>def authenticate(id: Long): String = db withSession { implicit db: Session =&gt;
      val u = findUserById(id)
      u.role
  }
  
  found   : models.Role
  [error]  required: String
  </code></pre>
  
  <p>I'm guessing <code>models.Role</code> equals <code>(String, models.Role)</code>.
  I'm expecting to get back either "UserRole" or "AdminRole".  Could someone shed some light</p>