From 587857e6bf15a3cb110dd71d39cd1cd5839bb59c Mon Sep 17 00:00:00 2001 From: Gavin Date: Mon, 19 Dec 2022 01:43:32 +0100 Subject: [PATCH] run SelectGeneratorTest on Db2 --- .../test/generatedkeys/select/MyEntity.hbm.xml | 18 +++++++++++++++++- .../select/SelectGeneratorTest.java | 2 ++ .../selectannotated/MyEntity.hbm.xml | 18 +++++++++++++++++- .../selectannotated/SelectGeneratorTest.java | 2 ++ 4 files changed, 38 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/generatedkeys/select/MyEntity.hbm.xml b/hibernate-core/src/test/java/org/hibernate/orm/test/generatedkeys/select/MyEntity.hbm.xml index fa851c2f3a..f18ea2c693 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/generatedkeys/select/MyEntity.hbm.xml +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/generatedkeys/select/MyEntity.hbm.xml @@ -52,7 +52,7 @@ + set new.id = (select coalesce(max(id), 0) + 1 from my_entity)]]> @@ -61,6 +61,22 @@ + + + + + + + + + + + set new.id = (select coalesce(max(id), 0) + 1 from my_entity)]]> @@ -63,6 +63,22 @@ + + + + + + + + + +