From 0d0b9735cec6c4ef95f2cc0f09e65f144e2108c8 Mon Sep 17 00:00:00 2001 From: Ali Dehghani Date: Mon, 28 Oct 2019 00:23:41 +0330 Subject: [PATCH] Shouldn't drop a non-existent table! --- .../java/com/baeldung/hibernate/CustomClassIntegrationTest.java | 1 - 1 file changed, 1 deletion(-) diff --git a/persistence-modules/hibernate5/src/test/java/com/baeldung/hibernate/CustomClassIntegrationTest.java b/persistence-modules/hibernate5/src/test/java/com/baeldung/hibernate/CustomClassIntegrationTest.java index e64e836924..699890c457 100644 --- a/persistence-modules/hibernate5/src/test/java/com/baeldung/hibernate/CustomClassIntegrationTest.java +++ b/persistence-modules/hibernate5/src/test/java/com/baeldung/hibernate/CustomClassIntegrationTest.java @@ -26,7 +26,6 @@ public class CustomClassIntegrationTest { public void setUp() throws IOException { session = HibernateUtil.getSessionFactory().openSession(); transaction = session.beginTransaction(); - session.createNativeQuery("delete from manager").executeUpdate(); session.createNativeQuery("delete from department").executeUpdate(); Department department = new Department("Sales"); DeptEmployee employee = new DeptEmployee("John Smith", "001", department);