SessionFactory « EntityManager « JPA Q&A





1. Hibernate SessionFactory vs. EntityManagerFactory    stackoverflow.com

I am new to Hibernate and am unclear of whether to use a SessionFactory or EntityManagerFactory to obtain the hibernate session. What is the difference between the two? Pros ...

2. EntityManager and sessionfactory newbie question    forum.hibernate.org

Hi, I am just wondering what are the relations between sessionfactory and entitymanager. When using entitymanager in a container managed env. eg. using persistance.xml, will the entitymanager make use of the sessionfactory(is the entitymanager just a layer that makes use of the sessionfactory)? I was always used to using hibernate through the sessions, and my concern is if there will be ...

3. Get EntityManager from SessionFactory    forum.hibernate.org

4. Impl - Differenc between EntityManager vs SessionFactory?    forum.hibernate.org

Hi, I'm pretty new at working with Hibernate so please bear with me. Could someone point me to some useful links or please explain though the difference between these two implementation approaches? While working with Struts 1.X and using Hibernate I started to become familiar with the whole idea of hibernate mapping files and creating appropriate DAO classes for all my ...