I am new to Hibernate and I’m not sure whether to use a Hibernate SessionFactory
or a JPA EntityManagerFactory
to create a Hibernate Session
.
What is the difference between these two? What are the pros & cons of using each of those?
I am new to Hibernate and I’m not sure whether to use a Hibernate SessionFactory
or a JPA EntityManagerFactory
to create a Hibernate Session
.
What is the difference between these two? What are the pros & cons of using each of those?