title: Migration of an Spring, Hibernate 3.6.3-JPA application to Hibernate 4
body: <p>Hello I'm trying to migrate an Hibernate 3.6.3 application to Hibernate 4 and I'm getting following error:</p>
  
  <pre><code> Invalid property 'dataSource' of bean class 
   [org.springframework.orm.jpa.LocalEntityManagerFactoryBean]: 
   Bean property 'dataSource' is not writable or has an invalid 
   setter method. Does the parameter type of the setter match the 
   return type of the getter?
  </code></pre>
  
  <p>I have looked a this post:
  <a href="https://stackoverflow.com/questions/13357533/integrating-jpa-and-springioc">integrating JPA and SpringIOc</a></p>
  
  <p>When I use LocalEntityManagerFactoryBean I get the error mentioned above, but when I use LocalContainerEntityManagerFactoryBean I get an error when creating my DAO bean.</p>
  
  <p>I think it's a problem of spring.orm dependency configuration, but I'm not sure, since all the dependency changes I have made aren't working.</p>
  
  <p>Where can I find a Hibernate 4 migration guide in order to adapt my JPA, Hibernate 3.6.3 and Spring application? </p>