mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-10 05:04:52 +00:00
Fix tests for Oracle 11
This commit is contained in:
parent
864b7f22fc
commit
452d69b61f
@ -20,6 +20,7 @@
|
||||
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 @@
|
||||
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 void testImplicitJoinWithRelatedEntity(EntityManagerFactoryScope scope) {
|
||||
});
|
||||
}
|
||||
|
||||
@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 void setMasterField(final String masterField) {
|
||||
}
|
||||
}
|
||||
|
||||
@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 void setRelatedEntitySet(final Set<RelatedEntity> relatedEntitySet) {
|
||||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
public class RelatedEntity {
|
||||
@Entity(name = "RelatedEntity")
|
||||
public static class RelatedEntity {
|
||||
@Id
|
||||
@GeneratedValue
|
||||
public Long id;
|
||||
|
@ -56,7 +56,7 @@ public void testHhh17001(SessionFactoryScope scope) {
|
||||
}
|
||||
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Parent")
|
||||
public static class Parent {
|
||||
@Id
|
||||
private Long id;
|
||||
@ -67,7 +67,7 @@ public static class Parent {
|
||||
private Set<Child> children = new HashSet<>();
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Child")
|
||||
public static class Child {
|
||||
@Id
|
||||
private Long id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user