From 1ba2203d7c60c2a11b47c53f141dca6639e3240b Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Tue, 25 Jul 2023 15:03:18 +0200 Subject: [PATCH] Fix HANA and Oracle old testsuite failure due to id column only table with identity --- .../orm/test/jpa/remove/RemoveAndOrderUpdateTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/jpa/remove/RemoveAndOrderUpdateTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/jpa/remove/RemoveAndOrderUpdateTest.java index e70d674959..19b5174a27 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/jpa/remove/RemoveAndOrderUpdateTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/jpa/remove/RemoveAndOrderUpdateTest.java @@ -72,8 +72,9 @@ public class RemoveAndOrderUpdateTest { @Entity(name = "Form") public static class Form { @Id - @GeneratedValue(strategy = GenerationType.IDENTITY) + @GeneratedValue protected Long id; + protected String name; public Long getId() { return id; @@ -88,7 +89,7 @@ public class RemoveAndOrderUpdateTest { @Entity(name = "FormInput") public static class FormInput { @Id - @GeneratedValue(strategy = GenerationType.IDENTITY) + @GeneratedValue private Long id; @ManyToOne(optional = false, fetch = FetchType.EAGER)