diff options
Diffstat (limited to 'src/main/scala')
-rw-r--r-- | src/main/scala/NamespacedCodegen.scala | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/main/scala/NamespacedCodegen.scala b/src/main/scala/NamespacedCodegen.scala index 2570ba2..a4bc8d8 100644 --- a/src/main/scala/NamespacedCodegen.scala +++ b/src/main/scala/NamespacedCodegen.scala @@ -71,13 +71,10 @@ class ImportGenerator(dbModel: Model, schemaImports: List[String]) val baseImports: String = schemaImports.map("import " + _).mkString("\n") val hlistImports: String = - if (tables.exists(_.hlistEnabled)) - """ - |import slick.collection.heterogeneous._ - |import slick.collection.heterogeneous.syntax._ - | - |""".stripMargin - else "" + """|import slick.collection.heterogeneous._ + |import slick.collection.heterogeneous.syntax._ + | + |""".stripMargin val plainSqlMapperImports: String = if (tables.exists(_.PlainSqlMapper.enabled)) |