aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/NamespacedCodegen.scala
diff options
context:
space:
mode:
authorStewart Stewart <stewinsalot@gmail.com>2017-02-21 22:41:54 -0500
committerStewart Stewart <stewinsalot@gmail.com>2017-02-21 22:41:54 -0500
commitee5142f4e3c889429c00fddf3d045506f10acf94 (patch)
tree337ac51ed0d12340caa0bae3d56ed22cd111f429 /src/main/scala/NamespacedCodegen.scala
parent9e82e7b3e27daab015da0b21411041eedb859698 (diff)
downloadslick-codegen-plugin-ee5142f4e3c889429c00fddf3d045506f10acf94.tar.gz
slick-codegen-plugin-ee5142f4e3c889429c00fddf3d045506f10acf94.tar.bz2
slick-codegen-plugin-ee5142f4e3c889429c00fddf3d045506f10acf94.zip
add codegen header
Diffstat (limited to 'src/main/scala/NamespacedCodegen.scala')
-rw-r--r--src/main/scala/NamespacedCodegen.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/scala/NamespacedCodegen.scala b/src/main/scala/NamespacedCodegen.scala
index affd36c..c545b80 100644
--- a/src/main/scala/NamespacedCodegen.scala
+++ b/src/main/scala/NamespacedCodegen.scala
@@ -24,6 +24,7 @@ object Generator {
manualForeignKeys: Map[(String, String), (String, String)],
parentType: Option[String],
idType: Option[String],
+ header: String,
schemaImports: List[String],
typeReplacements: Map[String, String]) = {
val dc: DatabaseConfig[JdbcProfile] =
@@ -54,6 +55,7 @@ object Generator {
manualForeignKeys,
parentType,
idType,
+ header,
schemaImports,
typeReplacements)
generator.writeToFile(profile = profile,
@@ -75,6 +77,7 @@ class Generator(pkg: String,
manualForeignKeys: Map[(String, String), (String, String)],
override val parentType: Option[String],
idType: Option[String],
+ override val headerComment: String,
schemaImports: List[String],
typeReplacements: Map[String, String])
extends SourceCodeGenerator(schemaOnlyModel)