Fix some tests failing for older DBs
This commit is contained in:
parent
8564289c83
commit
e94d030458
|
@ -78,7 +78,7 @@ public class EnumeratedAndGenerics2Test {
|
|||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name="TestEntity")
|
||||
public static class TestEntity extends GenericBaseEntity<TestEnum> {
|
||||
|
||||
@Id
|
||||
|
@ -93,7 +93,7 @@ public class EnumeratedAndGenerics2Test {
|
|||
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name="AnotherTestEntity")
|
||||
public static class AnotherTestEntity extends GenericBaseEntity<AnotherTestEnum> {
|
||||
|
||||
@Id
|
||||
|
|
|
@ -67,7 +67,7 @@ public class EnumeratedAndGenerics3Test {
|
|||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name="TestEntity")
|
||||
public static class TestEntity extends GenericBaseEntity<TestEnum> {
|
||||
|
||||
@Id
|
||||
|
|
|
@ -78,7 +78,7 @@ public class EnumeratedAndGenericsTest {
|
|||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name="TestEntity")
|
||||
public static class TestEntity extends GenericBaseEntity<TestEnum> {
|
||||
|
||||
@Id
|
||||
|
@ -93,7 +93,7 @@ public class EnumeratedAndGenericsTest {
|
|||
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name="AnotherTestEntity")
|
||||
public static class AnotherTestEntity extends GenericBaseEntity<AnotherTestEnum> {
|
||||
|
||||
@Id
|
||||
|
|
|
@ -68,7 +68,7 @@ public class ReferencedJoinedSuperclassColumnTest {
|
|||
@DiscriminatorColumn(name = "branch_type", discriminatorType = DiscriminatorType.STRING)
|
||||
public static class Branch {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@GeneratedValue
|
||||
Long id;
|
||||
|
||||
@Column(unique = true, name = "branch_id")
|
||||
|
|
|
@ -54,7 +54,7 @@ public class ReferencedSuperclassColumnTest {
|
|||
@DiscriminatorColumn(name = "branch_type", discriminatorType = DiscriminatorType.STRING)
|
||||
public static class Branch {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@GeneratedValue
|
||||
Long id;
|
||||
|
||||
@Column(unique = true, name = "branch_id")
|
||||
|
|
|
@ -16,7 +16,7 @@ import java.util.UUID;
|
|||
|
||||
@SessionFactory
|
||||
@DomainModel(annotatedClasses = PostgresUuidTest.It.class)
|
||||
@RequiresDialect(PostgreSQLDialect.class)
|
||||
@RequiresDialect(value = PostgreSQLDialect.class, majorVersion = 13)
|
||||
public class PostgresUuidTest {
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue