HHH-15865 Fix CI test failures due to GenerationType.IDENTITY
This commit is contained in:
parent
446908f643
commit
e39473139e
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue