This commit is contained in:
Timo Westkämper 2011-04-27 15:14:14 +00:00
parent 016e21661a
commit 1eb943c86e

View File

@ -89,6 +89,7 @@ class ScalaEntitySerializer @Inject()(val typeMappings: TypeMappings) extends Se
writer.beginObject(queryTypeName)
writer.line("def as(variable: String) = new ", queryTypeName, "(variable)")
writer.line("")
writer.line("val ", model.getUncapSimpleName, " = new ", queryTypeName, "(\"", model.getUncapSimpleName, "\")")
writer.end()