Tag Archives: Slick

Easiest Way To Map Optional Nested Case Class with Slick in Scala

Knoldus Blogs

Few days ago, I had a scenario, in which I was supposed to map optional nested case class in slick using Scala.

I was trying to do this mapping the way, I have explained below.

But I was getting below compilation error.

After beating my head two days, I found a solution by adding custom mapping.

It worked and now I am able to compile and run my code.

View original post