activate
activate copied to clipboard
Custom encoding and Slick
Running the following Slick query:
SlickQuery[Post].filter(_.category.col == Category.Debate).filter(_.publishDate.col <= DateTime.now).filter(_.draft.col == false).sortBy(_.publishDate.col).execute
I get the following compile time error.
/home/wallnuss/src/one_europe-play/app/controllers/Posts.scala:74: could not find implicit value for parameter tm: scala.slick.ast.TypedType[models.postUtils.Category]
It might be necessary to use the custom encoding to generate the correct TypedType.