Fix some tests failing for older DBs

This commit is contained in:
Marco Belladelli 2023-04-26 16:20:53 +02:00
parent 8564289c83
commit e94d030458
6 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -67,7 +67,7 @@ public class EnumeratedAndGenerics3Test {
}
}
@Entity
@Entity(name="TestEntity")
public static class TestEntity extends GenericBaseEntity<TestEnum> {
@Id

View File

@ -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

View File

@ -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")

View File

@ -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")

View File

@ -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