From ed7e7a88566dc5fd901075d606cd8f33b3601586 Mon Sep 17 00:00:00 2001 From: skidus Date: Wed, 24 Sep 2025 11:58:38 +0700 Subject: [PATCH] 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. --- .../coroutines-javaagent-legacy.jar | Bin 270 -> 270 bytes .intellijPlatform/self-update.lock | 2 +- .../actionmodels/GeneratorServices.java | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.intellijPlatform/coroutines-javaagent-legacy.jar b/.intellijPlatform/coroutines-javaagent-legacy.jar index a7892552afe4576a26a886eb0801685b6fb952f5..caebd134ece2796849314fd9ccddd2065a7816fc 100644 GIT binary patch delta 28 hcmeBU>SN*!@MdNaVc_84VCV?7n8>@48AKiQ1preZ2NwVU delta 28 hcmeBU>SN*!@MdNaVc_84VEA4mGLd&9Gl)9q3jkZ#2m1g3 diff --git a/.intellijPlatform/self-update.lock b/.intellijPlatform/self-update.lock index 07eb06f..b92f569 100644 --- a/.intellijPlatform/self-update.lock +++ b/.intellijPlatform/self-update.lock @@ -1 +1 @@ -2025-08-20 \ No newline at end of file +2025-09-24 \ No newline at end of file diff --git a/src/main/java/com/sdk/generators/actionmodels/GeneratorServices.java b/src/main/java/com/sdk/generators/actionmodels/GeneratorServices.java index 4663e12..112f216 100644 --- a/src/main/java/com/sdk/generators/actionmodels/GeneratorServices.java +++ b/src/main/java/com/sdk/generators/actionmodels/GeneratorServices.java @@ -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())); } });