Skip to content

Commit

Permalink
add id as long
Browse files Browse the repository at this point in the history
  • Loading branch information
kropp committed Aug 4, 2015
1 parent 418b9e2 commit 0a226de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions generator/src/main/kotlin/generator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,11 @@ class GeneratorSink : TripleSink {
}
}
}
if (type.name == "Thing") {
appendln(" public Builder id(long id) {")
appendln(" return id(Long.toString(id));")
appendln(" }")
}
getAllFields(type).forEach { appendln(" private ${getEitherFieldType(ns, packageDir, it)} ${getVariableName(it.name!!)};") }
appendln(" }")
appendln()
Expand Down

0 comments on commit 0a226de

Please sign in to comment.