With new Scala 2.11.0 do we still have to use Slick HList to overcome arity limit?

StackOverflow https://stackoverflow.com/questions/23217322

  •  07-07-2023
  •  | 
  •  

Domanda

Good news, Scala 2.11.0 version has been released. They finally fixed arity limit <22 for case classes http://www.scala-lang.org/news/2014/04/21/release-notes-2.11.0.html

My question is related to slick orm. Do we still have to use HList to overcome arity limits?

È stato utile?

Soluzione

At this point there is no production ready Slick version for Scala 2.11.0. Only milestone Slick version 2.1.0-M1 compiles on new Scala.

Slick Table class requires tupled & unapply methods to compile. Those methods does not exists in case classes with arity > 22

So as of April 22 2014 we still have to use HList to overcome arity limits

Thanks to @Régis Jean-Gilles who helped me to unconfuse myself

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top