diff --git a/persistence-modules/spring-jpa-2/src/main/java/com/baeldung/spring/hibernate/AbstractHibernateDao.java b/persistence-modules/spring-jpa-2/src/main/java/com/baeldung/spring/hibernate/AbstractHibernateDao.java index c0a99e92c8..76599cb2ab 100644 --- a/persistence-modules/spring-jpa-2/src/main/java/com/baeldung/spring/hibernate/AbstractHibernateDao.java +++ b/persistence-modules/spring-jpa-2/src/main/java/com/baeldung/spring/hibernate/AbstractHibernateDao.java @@ -15,7 +15,7 @@ public abstract class AbstractHibernateDao { @Autowired protected SessionFactory sessionFactory; - protected final void setClazz(final Class clazzToSet) { + public final void setClazz(final Class clazzToSet) { clazz = Preconditions.checkNotNull(clazzToSet); }