From febd9c5c940610fff4472c9dc54e1aea18c46654 Mon Sep 17 00:00:00 2001 From: Vitalii Bedletskyi Date: Thu, 21 May 2026 17:20:06 +0300 Subject: [PATCH] HCK-16191: ignore separate PK constraint for hybride table --- forward_engineering/config.json | 93 +++++++++++++++++++++++++++++++-- 1 file changed, 89 insertions(+), 4 deletions(-) diff --git a/forward_engineering/config.json b/forward_engineering/config.json index 88cdf3cb..4b88b868 100644 --- a/forward_engineering/config.json +++ b/forward_engineering/config.json @@ -89,17 +89,66 @@ }, "defaultValue": { "primaryKey": [] - } + }, + "applyToValue": "ignore" + }, + { + "dependency": { + "type": "and", + "values": [ + { + "key": "primaryKey", + "valueType": "array" + }, + { + "type": "not", + "values": [ + { + "key": "hybrid", + "value": true + } + ] + } + ] + }, + "defaultValue": { + "primaryKey": [] + }, + "applyToValue": "separate" }, { "dependency": { "key": "primaryKey", "valueType": "object" }, - "defaultValue": { "primaryKey": {} - } + }, + "applyToValue": "ignore" + }, + { + "dependency": { + "type": "and", + "values": [ + { + "key": "primaryKey", + "valueType": "object" + }, + { + "type": "not", + "values": [ + { + "key": "hybrid", + "value": true + } + ] + } + ] + }, + "defaultValue": { + "primaryKey": {} + }, + "applyToValue": "separate" }, { "dependency": { @@ -118,7 +167,43 @@ "defaultValue": { "primaryKey": false, "compositePrimaryKey": false - } + }, + "applyToValue": "ignore" + }, + { + "dependency": { + "type": "and", + "values": [ + { + "type": "or", + "values": [ + { + "key": "primaryKey", + "value": true + }, + { + "key": "compositePrimaryKey", + "value": true + } + ] + }, + { + "type": "not", + "values": [ + { + "level": "root", + "key": "hybrid", + "value": true + } + ] + } + ] + }, + "defaultValue": { + "primaryKey": false, + "compositePrimaryKey": false + }, + "applyToValue": "separate" } ] },