mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-26 05:14:57 +00:00
Fix some tests failing for older DBs
This commit is contained in:
parent
8564289c83
commit
e94d030458
@ -78,7 +78,7 @@ public void setState(T state) {
|
||||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name="TestEntity")
|
||||
public static class TestEntity extends GenericBaseEntity<TestEnum> {
|
||||
|
||||
@Id
|
||||
@ -93,7 +93,7 @@ public TestEntity(long id) {
|
||||
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name="AnotherTestEntity")
|
||||
public static class AnotherTestEntity extends GenericBaseEntity<AnotherTestEnum> {
|
||||
|
||||
@Id
|
||||
|
@ -67,7 +67,7 @@ public void setState(T state) {
|
||||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name="TestEntity")
|
||||
public static class TestEntity extends GenericBaseEntity<TestEnum> {
|
||||
|
||||
@Id
|
||||
|
@ -78,7 +78,7 @@ public void setState(T state) {
|
||||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name="TestEntity")
|
||||
public static class TestEntity extends GenericBaseEntity<TestEnum> {
|
||||
|
||||
@Id
|
||||
@ -93,7 +93,7 @@ public TestEntity(long id) {
|
||||
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name="AnotherTestEntity")
|
||||
public static class AnotherTestEntity extends GenericBaseEntity<AnotherTestEnum> {
|
||||
|
||||
@Id
|
||||
|
@ -68,7 +68,7 @@ void test(SessionFactoryScope scope) {
|
||||
@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 @@ void test(SessionFactoryScope scope) {
|
||||
@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 @@
|
||||
|
||||
@SessionFactory
|
||||
@DomainModel(annotatedClasses = PostgresUuidTest.It.class)
|
||||
@RequiresDialect(PostgreSQLDialect.class)
|
||||
@RequiresDialect(value = PostgreSQLDialect.class, majorVersion = 13)
|
||||
public class PostgresUuidTest {
|
||||
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user