HHH-15865 Fix CI test failures due to GenerationType.IDENTITY

This commit is contained in:
Marco Belladelli 2023-01-03 14:38:09 +01:00 committed by Christian Beikov
parent 446908f643
commit e39473139e
2 changed files with 3 additions and 5 deletions

View File

@ -21,7 +21,6 @@ import jakarta.persistence.Embedded;
import jakarta.persistence.EmbeddedId;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.OneToMany;
@ -66,7 +65,7 @@ public class OneToManyNestedEmbeddedIdTest {
@Entity(name = "ChildEntity")
public static class ChildEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue
private int id;
public int getId() {

View File

@ -20,7 +20,6 @@ import jakarta.persistence.Embeddable;
import jakarta.persistence.Embedded;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.OneToMany;
@ -69,7 +68,7 @@ public class OneToManyInEmbeddedTest {
@Entity(name = "ChildEntity")
public static class ChildEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue
private int id;
public int getId() {
@ -106,7 +105,7 @@ public class OneToManyInEmbeddedTest {
@Entity(name = "ParentEntity")
public static class ParentEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue
private int id;
@Embedded