Hi, I do not understand what is wrong
Code
...
class Edifile(_tableTag: Tag) extends Table[EdifileRow](_tableTag, "edifile") {
...
}
...
lazy val Edifile = new TableQuery(tag => new Edifile(tag))
db.withSession { implicit session =>
val edifile = Edifile.filter(_.id == edifileId)
println(edifile)
}
...
Error
Error:(22, 29) inferred type arguments [Boolean] do not conform to method filter's type parameter bounds [T <: scala.slick.lifted.Column[_]]
val edifile = Edifile.filter(_.id == edifileId)
^
Error:(22, 41) type mismatch;
found : com.nextstar.b2b.entity.Tables.Edifile => Boolean
required: com.nextstar.b2b.entity.Tables.Edifile => T
val edifile = Edifile.filter(_.id == edifileId)
^
Error:(22, 35) Type T cannot be a query condition (only Boolean, Column[Boolean] and Column[Option[Boolean]] are allowed
val edifile = Edifile.filter(_.id == edifileId)
^
What is the error? is not a simple filter with boolean?