From 6861290978456a2fb2502c1ef50f67d41920e515 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Mon, 6 Feb 2023 10:10:14 +0100 Subject: [PATCH] Fix tests for Oracle 11 --- .../orm/test/annotations/id/IdClassAndAssociationsTest.java | 2 +- .../EmbeddablePersistAndQueryInSameTransactionTest.java | 4 ++-- .../orm/test/polymorphic/PolymorphicQueriesWithJoinTest.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/id/IdClassAndAssociationsTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/id/IdClassAndAssociationsTest.java index c3a4d42f1b..bb5de187e9 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/id/IdClassAndAssociationsTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/id/IdClassAndAssociationsTest.java @@ -87,7 +87,7 @@ public class IdClassAndAssociationsTest { @Table(name = "course_enrollment") public static class CourseEnrollment { @Id - @GeneratedValue(strategy = GenerationType.IDENTITY) + @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @Column(name = "course") diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/jpa/orphan/onetomany/EmbeddablePersistAndQueryInSameTransactionTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/jpa/orphan/onetomany/EmbeddablePersistAndQueryInSameTransactionTest.java index baa90452d3..b4234c7891 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/jpa/orphan/onetomany/EmbeddablePersistAndQueryInSameTransactionTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/jpa/orphan/onetomany/EmbeddablePersistAndQueryInSameTransactionTest.java @@ -59,7 +59,7 @@ class EmbeddablePersistAndQueryInSameTransactionTest { public static class Child { @Id - @GeneratedValue(strategy = GenerationType.IDENTITY) + @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @Basic @@ -86,7 +86,7 @@ class EmbeddablePersistAndQueryInSameTransactionTest { public static class Dog { @Id - @GeneratedValue(strategy = GenerationType.IDENTITY) + @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @Basic diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/polymorphic/PolymorphicQueriesWithJoinTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/polymorphic/PolymorphicQueriesWithJoinTest.java index 28e810ad23..59e42123fc 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/polymorphic/PolymorphicQueriesWithJoinTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/polymorphic/PolymorphicQueriesWithJoinTest.java @@ -144,7 +144,7 @@ public class PolymorphicQueriesWithJoinTest { public static class Cat implements Animal { @Id - @GeneratedValue(strategy = GenerationType.IDENTITY) + @GeneratedValue(strategy = GenerationType.AUTO) private long id; private String name; @@ -169,7 +169,7 @@ public class PolymorphicQueriesWithJoinTest { public static class Dog implements Animal { @Id - @GeneratedValue(strategy = GenerationType.IDENTITY) + @GeneratedValue(strategy = GenerationType.AUTO) private long id; private String name;