As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
public class YourDaoClassImpl extends HibernateDaoSupport implements YourDaoClass { public List getCoolStuff(){ return getHibernateTemplate().createQuery("from CoolClass").list(); } }
<!– Note: You should add Proxy-based Transaction-Support (Interceptor> <bean id="yourDaoClass" class="classpath.YourDaoClassImpl "> <property name="sessionFactory" ref="sessionFactory" /> </bean>