Skip to content

Commit

Permalink
Fixed scalikejdbc#106 mapper-generator should be divided into generat…
Browse files Browse the repository at this point in the history
…or-part and sbt-plugin-part
  • Loading branch information
seratch committed Mar 31, 2013
1 parent 066ff0f commit 33010c1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
10 changes: 0 additions & 10 deletions scalikejdbc-mapper-generator-core/build.sbt
@@ -1,12 +1,2 @@
scalariformSettings

testgeneratorSettings

scalagSettings

ScriptedPlugin.scriptedSettings

ScriptedPlugin.scriptedBufferLog := false

net.virtualvoid.sbt.graph.Plugin.graphSettings

Expand Up @@ -20,7 +20,7 @@ import scalikejdbc._
/**
* Active Record like template generator
*/
case class CodeGenerator(table: Table, specifiedClassName: Option[String] = None)(implicit config: GeneratorConfig = GeneratorConfig()) {
class CodeGenerator(table: Table, specifiedClassName: Option[String] = None)(implicit config: GeneratorConfig = GeneratorConfig()) {

import java.sql.{ Types => JavaSqlTypes }
import java.io.{ OutputStreamWriter, FileOutputStream, File }
Expand Down
Expand Up @@ -74,7 +74,7 @@ object SbtPlugin extends Plugin {
lineBreak = LineBreak(generatorSettings.lineBreak),
encoding = generatorSettings.encoding
)
Option(CodeGenerator(table, className)(config))
Option(new CodeGenerator(table, className)(config))
} getOrElse {
println("The table is not found.")
None
Expand Down

0 comments on commit 33010c1

Please sign in to comment.