Remove invalid import

This commit is contained in:
Grzegorz Piwowarek 2016-08-18 21:43:46 +02:00
parent 2c18c48803
commit 6e5de2fb36
2 changed files with 1 additions and 2 deletions

View File

@ -11,7 +11,7 @@ public class HibernateUtil {
//two config files are there //two config files are there
//one with lazy loading enabled //one with lazy loading enabled
//another lazy = false //another lazy = false
SessionFactory sf = null; SessionFactory sf;
if ("lazy".equals(fetchMethod)) { if ("lazy".equals(fetchMethod)) {
sf = new Configuration().configure("fetchingLazy.cfg.xml").buildSessionFactory(); sf = new Configuration().configure("fetchingLazy.cfg.xml").buildSessionFactory();
} else { } else {

View File

@ -1,7 +1,6 @@
package com.baeldung.hibernate.fetching.view; package com.baeldung.hibernate.fetching.view;
import com.baeldung.hibernate.fetching.model.OrderDetail; import com.baeldung.hibernate.fetching.model.OrderDetail;
import com.baeldung.hibernate.fetching.model.OrderDetailEager;
import com.baeldung.hibernate.fetching.model.UserEager; import com.baeldung.hibernate.fetching.model.UserEager;
import com.baeldung.hibernate.fetching.model.UserLazy; import com.baeldung.hibernate.fetching.model.UserLazy;
import com.baeldung.hibernate.fetching.util.HibernateUtil; import com.baeldung.hibernate.fetching.util.HibernateUtil;