Skip to content

Commit

Permalink
Fix tests for Oracle 11
Browse files Browse the repository at this point in the history
  • Loading branch information
beikov committed Feb 6, 2023
1 parent c7541cf commit 3df56ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void testIt(EntityManagerFactoryScope scope) {
@Table(name = "course_enrollment")
public static class CourseEnrollment {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;

@Column(name = "course")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void testIt(EntityManagerFactoryScope scope) {
public static class Child {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;

@Basic
Expand All @@ -86,7 +86,7 @@ public String getName() {
public static class Dog {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;

@Basic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public interface Animal {
public static class Cat implements Animal {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;

private String name;
Expand All @@ -169,7 +169,7 @@ public void addToOwners(Person person) {
public static class Dog implements Animal {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;

private String name;
Expand Down

0 comments on commit 3df56ac

Please sign in to comment.