Skip to content

Commit 39457c5

Browse files
mbladelbeikov
authored andcommitted
Fix ORA-21700 in SetAsBasicTest
1 parent 52aca30 commit 39457c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: hibernate-core/src/test/java/org/hibernate/orm/test/annotations/basic/SetAsBasicTest.java

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
import java.util.HashSet;
1010
import java.util.Set;
1111

12+
import org.hibernate.testing.jdbc.SharedDriverManagerTypeCacheClearingIntegrator;
13+
import org.hibernate.testing.orm.junit.BootstrapServiceRegistry;
1214
import org.hibernate.testing.orm.junit.DomainModel;
1315
import org.hibernate.testing.orm.junit.SessionFactory;
1416
import org.hibernate.testing.orm.junit.SessionFactoryScope;
@@ -26,6 +28,8 @@
2628
}
2729
)
2830
@SessionFactory
31+
// Clear the type cache, otherwise we might run into ORA-21700: object does not exist or is marked for delete
32+
@BootstrapServiceRegistry(integrators = SharedDriverManagerTypeCacheClearingIntegrator.class)
2933
public class SetAsBasicTest {
3034

3135
@Test

0 commit comments

Comments
 (0)