From 539f4c208104709fd4e3c008ba71c46db2fddf24 Mon Sep 17 00:00:00 2001 From: Andrej Petras Date: Fri, 13 Dec 2024 11:39:30 +0100 Subject: [PATCH] fix: tests --- .../tkit/onecx/parameters/domain/daos/JobDAO.java | 2 +- .../tkit/onecx/parameters/domain/models/Job.java | 2 +- .../resources/db/v1/2024-12-13-create-tables.xml | 8 ++++++-- .../resources/data/parameters-dao-testdata.xml | 6 +++--- src/test/resources/data/parameters-testdata.xml | 14 +++++++------- 5 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/main/java/org/tkit/onecx/parameters/domain/daos/JobDAO.java b/src/main/java/org/tkit/onecx/parameters/domain/daos/JobDAO.java index bb34b62..e60aa1b 100644 --- a/src/main/java/org/tkit/onecx/parameters/domain/daos/JobDAO.java +++ b/src/main/java/org/tkit/onecx/parameters/domain/daos/JobDAO.java @@ -28,7 +28,7 @@ public Job getJob(String id) throws DAOException { .createQuery(cq) .setMaxResults(1) .setLockMode(LockModeType.PESSIMISTIC_WRITE) - .setHint("javax.persistence.lock.timeout", -2) + .setHint("jakarta.persistence.lock.timeout", -2) .getSingleResult(); } catch (NoResultException ex) { diff --git a/src/main/java/org/tkit/onecx/parameters/domain/models/Job.java b/src/main/java/org/tkit/onecx/parameters/domain/models/Job.java index dbe588f..e8e7b7f 100644 --- a/src/main/java/org/tkit/onecx/parameters/domain/models/Job.java +++ b/src/main/java/org/tkit/onecx/parameters/domain/models/Job.java @@ -11,7 +11,7 @@ @Getter @Setter @Entity -@Table(name = "APM_JOB") +@Table(name = "JOB") public class Job extends TraceableEntity { } diff --git a/src/main/resources/db/v1/2024-12-13-create-tables.xml b/src/main/resources/db/v1/2024-12-13-create-tables.xml index 90f9f77..ff25c06 100644 --- a/src/main/resources/db/v1/2024-12-13-create-tables.xml +++ b/src/main/resources/db/v1/2024-12-13-create-tables.xml @@ -32,18 +32,22 @@ - + - + + + + + diff --git a/src/test/resources/data/parameters-dao-testdata.xml b/src/test/resources/data/parameters-dao-testdata.xml index b1e43cb..3b4e1f3 100644 --- a/src/test/resources/data/parameters-dao-testdata.xml +++ b/src/test/resources/data/parameters-dao-testdata.xml @@ -1,6 +1,6 @@ - - - + + + \ No newline at end of file diff --git a/src/test/resources/data/parameters-testdata.xml b/src/test/resources/data/parameters-testdata.xml index a042076..198e5f2 100644 --- a/src/test/resources/data/parameters-testdata.xml +++ b/src/test/resources/data/parameters-testdata.xml @@ -1,19 +1,19 @@ - - - - - + + + + + - + - +