Evidence parameter is the curried implicit parameter of function, like in model.copy(id)(implicit typeMapper). You need to declare implicit val typeMapper: scala.slick.lifted.TypeMapper[T] = something. Search F3 in a source of model.copy.


Not quite right, changing def insert(model: T) to def insert[T: ClassManifest](model: T) should do the trick. Why?

Inside your function, you use classOf[T], but actual type of T gets erased in runtime, and its not clear on which class getSimpleName() should be invoked. So you should declare a type parameter with ClassManifest bound, and an implicit parameter of appropriate type should be added automatically [T](model: T)(implicit evidence$1: ClassManifest[T])

Related Query

More Query from same tag