Usage of the Hibernate @LazyCollection Annotation Article by Abdallah Sawan

This commit is contained in:
AbdallahSawan 2021-04-11 01:01:57 +03:00
parent 8a004c459a
commit a9fbcbadec
1 changed files with 0 additions and 6 deletions

View File

@ -97,12 +97,6 @@ public class LazyCollectionIntegrationTest {
Assert.assertFalse(Hibernate.isInitialized(branch.getAdditionalEmployees())); Assert.assertFalse(Hibernate.isInitialized(branch.getAdditionalEmployees()));
} }
@After
public void tearDown() {
session.getTransaction().commit();
session.close();
}
@AfterClass @AfterClass
public static void afterTests() { public static void afterTests() {
sessionFactory.close(); sessionFactory.close();