Fix ORA-21700 in SetAsBasicTest

This commit is contained in:
Marco Belladelli 2024-02-02 09:38:10 +01:00 committed by Christian Beikov
parent 52aca3078d
commit 39457c5e12
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,8 @@ package org.hibernate.orm.test.annotations.basic;
import java.util.HashSet;
import java.util.Set;
import org.hibernate.testing.jdbc.SharedDriverManagerTypeCacheClearingIntegrator;
import org.hibernate.testing.orm.junit.BootstrapServiceRegistry;
import org.hibernate.testing.orm.junit.DomainModel;
import org.hibernate.testing.orm.junit.SessionFactory;
import org.hibernate.testing.orm.junit.SessionFactoryScope;
@ -26,6 +28,8 @@ import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
}
)
@SessionFactory
// Clear the type cache, otherwise we might run into ORA-21700: object does not exist or is marked for delete
@BootstrapServiceRegistry(integrators = SharedDriverManagerTypeCacheClearingIntegrator.class)
public class SetAsBasicTest {
@Test