title: When should we close the EntityManagerFactory?
body: <p>I am pretty new on the ORM's. I just start to read books and documents about Java Persistence API with Hibernate. </p>
  
  <p>I just wondered, closing EntityManagerFactory is similar with jdbc database connection closing?</p>
  
  <p>Should we close it after every persist/update/delete or not? If we don't close it, will the database connection stay opened?</p>