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:
2025-09-24 11:58:38 +07:00
parent 170e55dd59
commit ed7e7a8856
3 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
2025-08-20
2025-09-24

View File

@@ -129,7 +129,7 @@ public class GeneratorServices {
dasKeys.forEach(key -> {
if (key.isPrimary()) {
DasUtil.getColumns(key).forEach(column -> primaryKeys.add(column.getName().toUpperCase()));
key.getColumnsRef().names().forEach(column -> primaryKeys.add(column.toUpperCase()));
}
});