mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-13 08:15:20 +07:00
Generated tables Table#primaryKey() will return string representation of first field name instead of primary key variable name
This commit is contained in:
parent
2ab7c7ceb0
commit
27e94d8122
@ -140,7 +140,7 @@ class TableCodeGenerator extends CodeGenerator {
|
||||
context.typeUtils)
|
||||
.addStatement("return $L", config.indexed()
|
||||
? null
|
||||
: CodeBlock.of("$S", schemaElement.primaryKeyFieldElement.element))
|
||||
: CodeBlock.of("$S", schemaElement.primaryKeyFieldElement.fieldNames[0]))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user