title: auto scan packages for jpa entities in spring
body: <p>One can easily do this when using hibernate SessionFactory:</p>
  
  <pre><code>&lt;bean id="sessionFactory"
  ...
  p:packagesToScan="com.sahandrc.survey" 
  </code></pre>
  
  <p>How can I do that with jpa EntityManagerFactory?</p>