title: Is it possible to use SpringData-JPA with a hibernate4.LocalSessionFactoryBean?
body: <p>I am already using Hibernate 4 directly with a <code>LocalSessionFactoryBean</code> and a <code>SessionFactory</code> in my code.</p>
  
  <p>I would now like to include Spring-Data-JPA in my code.</p>
  
  <p>But Spring-Data needs an <code>EntityManagerFactory</code> to work, which can be configured through a <code>LocalContainerEntityManagerFactoryBean</code>. Can these Beans <code>LocalSessionFactoryBean</code>  and <code>LocalContainerEntityManagerFactoryBean</code> coexist in one Spring project? </p>
  
  <p>(Or can one be adapted by the other?)
  What is the best practice?</p>