posted 16 years ago
Hi,
I am getting Null Pointer Exception while calling getHibernateTemplate() method in DAO class.
DetachedCriteria detachedCrit = DetachedCriteria.forClass(x.class);
ArrayList resultLst = getHibernateTemplate().findByCriteria(detachedCrit);
config file applicationContxt.xml
<bean id="RankingsDAO" class="com.sourcemedia.paymentssource.dataaccess.impl.RankingsDAOImpl">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
Could please some one help me out.
Thanks,
Narsimha Reddy Kota