This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
Kunal Lakhani wrote:What is the use of Entity Manager in Hibernate?
Hibernate implements the JPA API and if you are doing any EJB 3.0 entity beans on JBoss you are actually using Hibernate. Use the JPA Entity Manager if you are moving existing JPA code to Hibernate or if you must use the JPA API, otherwise I say just use the regalar Hibernate sessions. I recently move several EJB 3.0 entity beans from JBoss to a Spring/Hibernate enviornment without a single problem.