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.EmbeddedId;
|
||||||
import jakarta.persistence.Entity;
|
import jakarta.persistence.Entity;
|
||||||
import jakarta.persistence.GeneratedValue;
|
import jakarta.persistence.GeneratedValue;
|
||||||
import jakarta.persistence.GenerationType;
|
|
||||||
import jakarta.persistence.Id;
|
import jakarta.persistence.Id;
|
||||||
import jakarta.persistence.JoinColumn;
|
import jakarta.persistence.JoinColumn;
|
||||||
import jakarta.persistence.OneToMany;
|
import jakarta.persistence.OneToMany;
|
||||||
|
@ -66,7 +65,7 @@ public class OneToManyNestedEmbeddedIdTest {
|
||||||
@Entity(name = "ChildEntity")
|
@Entity(name = "ChildEntity")
|
||||||
public static class ChildEntity {
|
public static class ChildEntity {
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue
|
||||||
private int id;
|
private int id;
|
||||||
|
|
||||||
public int getId() {
|
public int getId() {
|
||||||
|
|
|
@ -20,7 +20,6 @@ import jakarta.persistence.Embeddable;
|
||||||
import jakarta.persistence.Embedded;
|
import jakarta.persistence.Embedded;
|
||||||
import jakarta.persistence.Entity;
|
import jakarta.persistence.Entity;
|
||||||
import jakarta.persistence.GeneratedValue;
|
import jakarta.persistence.GeneratedValue;
|
||||||
import jakarta.persistence.GenerationType;
|
|
||||||
import jakarta.persistence.Id;
|
import jakarta.persistence.Id;
|
||||||
import jakarta.persistence.JoinColumn;
|
import jakarta.persistence.JoinColumn;
|
||||||
import jakarta.persistence.OneToMany;
|
import jakarta.persistence.OneToMany;
|
||||||
|
@ -69,7 +68,7 @@ public class OneToManyInEmbeddedTest {
|
||||||
@Entity(name = "ChildEntity")
|
@Entity(name = "ChildEntity")
|
||||||
public static class ChildEntity {
|
public static class ChildEntity {
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue
|
||||||
private int id;
|
private int id;
|
||||||
|
|
||||||
public int getId() {
|
public int getId() {
|
||||||
|
@ -106,7 +105,7 @@ public class OneToManyInEmbeddedTest {
|
||||||
@Entity(name = "ParentEntity")
|
@Entity(name = "ParentEntity")
|
||||||
public static class ParentEntity {
|
public static class ParentEntity {
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue
|
||||||
private int id;
|
private int id;
|
||||||
|
|
||||||
@Embedded
|
@Embedded
|
||||||
|
|
Loading…
Reference in New Issue