Fix tests for Oracle 11
This commit is contained in:
parent
689d16216d
commit
3c389d7196
|
@ -20,6 +20,7 @@ import org.hibernate.testing.orm.junit.SessionFactoryScope;
|
|||
import org.hibernate.testing.orm.junit.SkipForDialect;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.Timeout;
|
||||
|
||||
import jakarta.persistence.LockModeType;
|
||||
import jakarta.persistence.LockTimeoutException;
|
||||
|
@ -40,10 +41,12 @@ import static org.hibernate.jpa.SpecHints.HINT_SPEC_QUERY_TIMEOUT;
|
|||
public class FollowOnLockingTest {
|
||||
|
||||
@Test
|
||||
@Timeout( 10 )
|
||||
public void testQueryLockingWithoutFollowOn(SessionFactoryScope scope) {
|
||||
testQueryLocking( scope, false );
|
||||
}
|
||||
@Test
|
||||
@Timeout( 10 )
|
||||
public void testQueryLockingWithFollowOn(SessionFactoryScope scope) {
|
||||
testQueryLocking( scope, true );
|
||||
}
|
||||
|
|
|
@ -100,9 +100,9 @@ public class JoinedInheritanceImplicitJoinTest {
|
|||
});
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "MasterEntity")
|
||||
@Inheritance(strategy = InheritanceType.JOINED)
|
||||
public class MasterEntity {
|
||||
public static class MasterEntity {
|
||||
@Id
|
||||
@GeneratedValue
|
||||
public Long id;
|
||||
|
@ -123,8 +123,8 @@ public class JoinedInheritanceImplicitJoinTest {
|
|||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
public class ChildEntity extends MasterEntity {
|
||||
@Entity(name = "ChildEntity")
|
||||
public static class ChildEntity extends MasterEntity {
|
||||
private String childField;
|
||||
|
||||
@OneToMany(mappedBy = "childEntity")
|
||||
|
@ -147,8 +147,8 @@ public class JoinedInheritanceImplicitJoinTest {
|
|||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
public class RelatedEntity {
|
||||
@Entity(name = "RelatedEntity")
|
||||
public static class RelatedEntity {
|
||||
@Id
|
||||
@GeneratedValue
|
||||
public Long id;
|
||||
|
|
|
@ -56,7 +56,7 @@ public class CriteriaTypeValidationTests {
|
|||
}
|
||||
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Parent")
|
||||
public static class Parent {
|
||||
@Id
|
||||
private Long id;
|
||||
|
@ -67,7 +67,7 @@ public class CriteriaTypeValidationTests {
|
|||
private Set<Child> children = new HashSet<>();
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Child")
|
||||
public static class Child {
|
||||
@Id
|
||||
private Long id;
|
||||
|
|
Loading…
Reference in New Issue