Make sure tests work with Oracle 11
This commit is contained in:
parent
14a4faab6a
commit
87c89959ba
|
@ -61,7 +61,7 @@ public class IdClassWithSuperclassTest {
|
|||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "MyEntity")
|
||||
@IdClass(ChildPrimaryKey.class)
|
||||
public static class MyEntity {
|
||||
|
||||
|
|
|
@ -112,7 +112,7 @@ public class ManyToOneTestReusedColumn extends BaseCoreFunctionalTestCase {
|
|||
);
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Fridge")
|
||||
@Cacheable
|
||||
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
|
||||
public static class Fridge {
|
||||
|
@ -145,7 +145,7 @@ public class ManyToOneTestReusedColumn extends BaseCoreFunctionalTestCase {
|
|||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Container")
|
||||
@BatchSize(size = 500)
|
||||
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
|
||||
@Cacheable
|
||||
|
@ -177,7 +177,7 @@ public class ManyToOneTestReusedColumn extends BaseCoreFunctionalTestCase {
|
|||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "FruitContainer")
|
||||
@DiscriminatorValue(value = "FRUIT_CONTAINER")
|
||||
public static class FruitContainer extends Container {
|
||||
@ManyToOne
|
||||
|
@ -194,7 +194,7 @@ public class ManyToOneTestReusedColumn extends BaseCoreFunctionalTestCase {
|
|||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "CheeseContainer")
|
||||
@DiscriminatorValue(value = "CHEESE_CONTAINER")
|
||||
public static class CheeseContainer extends Container {
|
||||
@ManyToOne
|
||||
|
@ -211,7 +211,7 @@ public class ManyToOneTestReusedColumn extends BaseCoreFunctionalTestCase {
|
|||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Food")
|
||||
@BatchSize(size = 500)
|
||||
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
|
||||
@Cacheable
|
||||
|
@ -232,7 +232,7 @@ public class ManyToOneTestReusedColumn extends BaseCoreFunctionalTestCase {
|
|||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Fruit")
|
||||
@BatchSize(size = 500)
|
||||
@DiscriminatorValue(value = "FRUIT")
|
||||
public static class Fruit extends Food {
|
||||
|
@ -249,7 +249,7 @@ public class ManyToOneTestReusedColumn extends BaseCoreFunctionalTestCase {
|
|||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Cheese")
|
||||
@BatchSize(size = 500)
|
||||
@DiscriminatorValue(value = "CHEESE")
|
||||
public static class Cheese extends Food {
|
||||
|
|
|
@ -20,6 +20,7 @@ import jakarta.persistence.Inheritance;
|
|||
import jakarta.persistence.InheritanceType;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
|
||||
|
||||
|
@ -95,7 +96,8 @@ public class LazyAbstractManyToOneNoProxyTest extends BaseCoreFunctionalTestCase
|
|||
);
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "User")
|
||||
@Table(name = "usr_tbl")
|
||||
@Proxy(lazy = false)
|
||||
public static class User {
|
||||
@Id
|
||||
|
@ -129,7 +131,7 @@ public class LazyAbstractManyToOneNoProxyTest extends BaseCoreFunctionalTestCase
|
|||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "ActorGroup")
|
||||
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
|
||||
@DiscriminatorColumn(name = "TYPE")
|
||||
@Proxy(lazy = false)
|
||||
|
@ -145,7 +147,7 @@ public class LazyAbstractManyToOneNoProxyTest extends BaseCoreFunctionalTestCase
|
|||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "UserGroup")
|
||||
@Proxy(lazy = false)
|
||||
@DiscriminatorValue("USERS")
|
||||
public static class UserGroup extends ActorGroup {
|
||||
|
|
|
@ -16,6 +16,7 @@ import jakarta.persistence.FetchType;
|
|||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
|
||||
|
||||
|
@ -88,7 +89,8 @@ public class LazyManyToOneNoProxyTest extends BaseCoreFunctionalTestCase {
|
|||
);
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "User")
|
||||
@Table(name = "usr_tbl")
|
||||
@Proxy(lazy = false)
|
||||
public static class User {
|
||||
@Id
|
||||
|
@ -122,7 +124,7 @@ public class LazyManyToOneNoProxyTest extends BaseCoreFunctionalTestCase {
|
|||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "UserGroup")
|
||||
@Proxy(lazy = false)
|
||||
public static class UserGroup {
|
||||
@Id
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package org.hibernate.orm.test.embeddable;
|
||||
|
||||
import org.hibernate.Hibernate;
|
||||
import org.hibernate.annotations.BatchSize;
|
||||
import org.hibernate.annotations.Parent;
|
||||
|
||||
import org.hibernate.testing.orm.junit.DomainModel;
|
||||
|
@ -17,7 +16,6 @@ import jakarta.persistence.Embeddable;
|
|||
import jakarta.persistence.Embedded;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Inheritance;
|
||||
import jakarta.persistence.InheritanceType;
|
||||
|
@ -81,7 +79,7 @@ public class EmbeddableWithParentWithInheritance2Test {
|
|||
}
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@GeneratedValue
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
|
|
@ -17,7 +17,6 @@ import jakarta.persistence.Embeddable;
|
|||
import jakarta.persistence.Embedded;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Inheritance;
|
||||
import jakarta.persistence.InheritanceType;
|
||||
|
@ -80,7 +79,7 @@ public class EmbeddableWithParentWithInheritanceTest {
|
|||
}
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@GeneratedValue
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
|
|
@ -9,7 +9,6 @@ package org.hibernate.orm.test.foreignkeys.sorting;
|
|||
import jakarta.persistence.CascadeType;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
|
||||
|
@ -19,7 +18,7 @@ import jakarta.persistence.ManyToOne;
|
|||
@Entity
|
||||
public class A {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@GeneratedValue
|
||||
private int id;
|
||||
|
||||
@ManyToOne(cascade = CascadeType.PERSIST)
|
||||
|
|
|
@ -78,7 +78,7 @@ public class SelectOnlyArrayPropertyTest extends BaseEntityManagerFunctionalTest
|
|||
} );
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "EntityWithIdAndIntegerArray")
|
||||
public static class EntityWithIdAndIntegerArray {
|
||||
|
||||
@Id
|
||||
|
|
|
@ -110,7 +110,7 @@ public class RemoveEntityTest {
|
|||
public static class EmployeeEntity {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@GeneratedValue
|
||||
@Column(name = "ID")
|
||||
private Integer employeeId;
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ import jakarta.persistence.FetchType;
|
|||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
|
@ -135,6 +136,7 @@ public class EntityWithEagerManyToOneTest {
|
|||
}
|
||||
|
||||
@Entity(name = "LazyAbstractEntityReference")
|
||||
@Table(name = "lazy_abstract_ent_ref")
|
||||
@Cacheable
|
||||
public static class LazyAbstractEntityReference {
|
||||
|
||||
|
@ -170,6 +172,7 @@ public class EntityWithEagerManyToOneTest {
|
|||
}
|
||||
|
||||
@Entity(name = "LazyConcreteEntityReference")
|
||||
@Table(name = "lazy_concrete_ent_ref")
|
||||
@Cacheable
|
||||
public static class LazyConcreteEntityReference {
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ import jakarta.persistence.FetchType;
|
|||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
@DomainModel(
|
||||
annotatedClasses = {
|
||||
|
@ -137,6 +138,7 @@ public class EntityWithLazyManyToOneTest {
|
|||
}
|
||||
|
||||
@Entity(name = "LazyAbstractEntityReference")
|
||||
@Table(name = "lazy_abstract_ent_ref")
|
||||
@Cacheable
|
||||
public static class LazyAbstractEntityReference {
|
||||
|
||||
|
@ -172,6 +174,7 @@ public class EntityWithLazyManyToOneTest {
|
|||
}
|
||||
|
||||
@Entity(name = "LazyConcreteEntityReference")
|
||||
@Table(name = "lazy_concrete_ent_ref")
|
||||
@Cacheable
|
||||
public static class LazyConcreteEntityReference {
|
||||
|
||||
|
|
Loading…
Reference in New Issue