title: HibernateDaoSupport in hibernate 4.0
body: <p>i am new in integration of jsf 2.0 spring 3.1 and hibernate 4.1. how can i change following code, because hibernate 4.0 does not include HibernateDaoSupport.</p>
  
  <pre><code>import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
  
  
      public class CustomerDaoImpl extends 
             HibernateDaoSupport implements CustomerDao{
  
          public void addCustomer(Customer customer){
  
              customer.setCreatedDate(new Date());
              getHibernateTemplate().save(customer);
  
          }
  
          public List&lt;Customer&gt; findAllCustomer(){
  
              return getHibernateTemplate().find("from Customer");
  
          }
      }
  </code></pre>
  
  <p>i am trying this sample: <a href="http://www.mkyong.com/jsf2/jsf-2-0-spring-hibernate-integration-example/" rel="noreferrer">http://www.mkyong.com/jsf2/jsf-2-0-spring-hibernate-integration-example/</a></p>