[#1580] Software Module & Distribution Set lock: add lock at db level (#1643)

1. add _locked_ column in the tables
2. add _locked_ field to the JPA entities
3. add lock set/get at JPA level (with lock DS checking for complete)
4. along with that little reordering of code is made to make it more structured

Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-02-14 20:59:34 +02:00
committed by GitHub
parent 4ebabcb256
commit 9bc0e74f47
9 changed files with 196 additions and 272 deletions

View File

@@ -0,0 +1,2 @@
ALTER TABLE sp_base_software_module ADD COLUMN locked BOOLEAN NOT NULL DEFAULT true;
ALTER TABLE sp_distribution_set ADD COLUMN locked BOOLEAN NOT NULL DEFAULT true;

View File

@@ -0,0 +1,2 @@
ALTER TABLE sp_base_software_module ADD COLUMN locked BOOLEAN NOT NULL DEFAULT true;
ALTER TABLE sp_distribution_set ADD COLUMN locked BOOLEAN NOT NULL DEFAULT true;

View File

@@ -0,0 +1,2 @@
ALTER TABLE sp_base_software_module ADD COLUMN locked BOOLEAN NOT NULL DEFAULT true;
ALTER TABLE sp_distribution_set ADD COLUMN locked BOOLEAN NOT NULL DEFAULT true;

View File

@@ -0,0 +1,2 @@
ALTER TABLE sp_base_software_module ADD COLUMN locked BOOLEAN NOT NULL DEFAULT true;
ALTER TABLE sp_distribution_set ADD COLUMN locked BOOLEAN NOT NULL DEFAULT true;

View File

@@ -0,0 +1,2 @@
ALTER TABLE sp_base_software_module ADD locked BIT NOT NULL DEFAULT 1;
ALTER TABLE sp_distribution_set ADD locked BIT NOT NULL DEFAULT 1;