fix: Correctly generate primary keys
The generator was failing to identify primary key columns, resulting in generated beans without them. This has been fixed by updating the code to use the `getColumnsRef()` method, which correctly retrieves the column names for the primary key.
This commit is contained in:
Binary file not shown.
@@ -1 +1 @@
|
|||||||
2025-08-20
|
2025-09-24
|
||||||
@@ -129,7 +129,7 @@ public class GeneratorServices {
|
|||||||
|
|
||||||
dasKeys.forEach(key -> {
|
dasKeys.forEach(key -> {
|
||||||
if (key.isPrimary()) {
|
if (key.isPrimary()) {
|
||||||
DasUtil.getColumns(key).forEach(column -> primaryKeys.add(column.getName().toUpperCase()));
|
key.getColumnsRef().names().forEach(column -> primaryKeys.add(column.toUpperCase()));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user