Fix tests for Oracle 11

This commit is contained in:
Christian Beikov 2023-08-16 20:02:01 +02:00
parent 689d16216d
commit 3c389d7196
3 changed files with 11 additions and 8 deletions

View File

@ -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 );
}

View File

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

View File

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