Apply little fix with generated DAO code

This commit is contained in:
2022-08-21 23:14:14 +02:00
parent bf41be5e6a
commit 6b5df7ad24

View File

@@ -125,8 +125,7 @@ class DataAccessObjectCodeGenerator : CodeGenerator {
.addStatement("return model.build()")
.endControlFlow()
.addStatement("throw new RuntimeException(\"No [${model.simpleName()}] found with [${primaryKey.name}] == [\" + id + \"]\")")
.endControlFlow()
.addStatement(")")
.endControlFlow(")")
.build()
)
.build()