Apply little fix with generated DAO code
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user