slick-codegen


Custom Slick Code Generator 3.0.0

自闭症网瘾萝莉.ら 提交于 2019-12-06 09:49:30
问题 Can slick codegen generate all the mapped case classes outside of the ${container} trait , so that they don't inherit its type? Maybe in another file altogether i.e. Models.scala ? // SuppliersRowsDAA.scala import persistence.Tables object SuppliersRowsDAA { case class Save(sup: Tables.SuppliersRow) } I get this compilation error: [error] /app/src/main/scala/persistence/dal/SuppliersDAA.scala:5: type mismatch; [error] found : persistence.Tables.SuppliersRow [error] required: SuppliersDAA.this

Slick codegen & tables with > 22 columns

空扰寡人 提交于 2019-11-28 08:48:33
I'm new to Slick. I'm creating a test suite for a Java application with Scala, ScalaTest and Slick. I'm using slick to prepare data before the test and to do assertions on the data after the test. The database used has some tables with more than 22 columns. I use slick-codegen to generate my schema code. For tables with more than 22 columns, slick-codegen does not generate a case class, but a HList-based custom type and a companion ‘constructor’ method. As I understand it, this is because the limitation that tuples and case classes can only have 22 fields. The way the code is generated, the

Slick codegen & tables with > 22 columns

筅森魡賤 提交于 2019-11-27 02:31:45
问题 I'm new to Slick. I'm creating a test suite for a Java application with Scala, ScalaTest and Slick. I'm using slick to prepare data before the test and to do assertions on the data after the test. The database used has some tables with more than 22 columns. I use slick-codegen to generate my schema code. For tables with more than 22 columns, slick-codegen does not generate a case class, but a HList-based custom type and a companion ‘constructor’ method. As I understand it, this is because the

工具导航Map