Skip to content

Commit e94d030

Browse files
committed
Fix some tests failing for older DBs
1 parent 8564289 commit e94d030

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/annotations/enumerated/EnumeratedAndGenerics2Test.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void setState(T state) {
7878
}
7979
}
8080

81-
@Entity
81+
@Entity(name="TestEntity")
8282
public static class TestEntity extends GenericBaseEntity<TestEnum> {
8383

8484
@Id
@@ -93,7 +93,7 @@ public TestEntity(long id) {
9393

9494
}
9595

96-
@Entity
96+
@Entity(name="AnotherTestEntity")
9797
public static class AnotherTestEntity extends GenericBaseEntity<AnotherTestEnum> {
9898

9999
@Id

hibernate-core/src/test/java/org/hibernate/orm/test/annotations/enumerated/EnumeratedAndGenerics3Test.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void setState(T state) {
6767
}
6868
}
6969

70-
@Entity
70+
@Entity(name="TestEntity")
7171
public static class TestEntity extends GenericBaseEntity<TestEnum> {
7272

7373
@Id

hibernate-core/src/test/java/org/hibernate/orm/test/annotations/enumerated/EnumeratedAndGenericsTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void setState(T state) {
7878
}
7979
}
8080

81-
@Entity
81+
@Entity(name="TestEntity")
8282
public static class TestEntity extends GenericBaseEntity<TestEnum> {
8383

8484
@Id
@@ -93,7 +93,7 @@ public TestEntity(long id) {
9393

9494
}
9595

96-
@Entity
96+
@Entity(name="AnotherTestEntity")
9797
public static class AnotherTestEntity extends GenericBaseEntity<AnotherTestEnum> {
9898

9999
@Id

hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/superclass/ReferencedJoinedSuperclassColumnTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void test(SessionFactoryScope scope) {
6868
@DiscriminatorColumn(name = "branch_type", discriminatorType = DiscriminatorType.STRING)
6969
public static class Branch {
7070
@Id
71-
@GeneratedValue(strategy = GenerationType.IDENTITY)
71+
@GeneratedValue
7272
Long id;
7373

7474
@Column(unique = true, name = "branch_id")

hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/superclass/ReferencedSuperclassColumnTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void test(SessionFactoryScope scope) {
5454
@DiscriminatorColumn(name = "branch_type", discriminatorType = DiscriminatorType.STRING)
5555
public static class Branch {
5656
@Id
57-
@GeneratedValue(strategy = GenerationType.IDENTITY)
57+
@GeneratedValue
5858
Long id;
5959

6060
@Column(unique = true, name = "branch_id")

hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/sqldefault/PostgresUuidTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
@SessionFactory
1818
@DomainModel(annotatedClasses = PostgresUuidTest.It.class)
19-
@RequiresDialect(PostgreSQLDialect.class)
19+
@RequiresDialect(value = PostgreSQLDialect.class, majorVersion = 13)
2020
public class PostgresUuidTest {
2121

2222
@Test

0 commit comments

Comments
 (0)