• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Entity manager in Hibernate

 
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the use of Entity Manager in Hibernate?
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.

Ran
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic