activate icon indicating copy to clipboard operation
activate copied to clipboard

Custom encoding and Slick

Open vchuravy opened this issue 11 years ago • 0 comments

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.

vchuravy avatar Feb 09 '14 18:02 vchuravy