• 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

What is persistencecontext and EntityManager ?

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is persistencecontext and EntityManager ? what does it mean as

@PersistenceContext
EntityManager


I have Searched in google but couldn't find a appropriate solution.
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

Take a look at http://download.oracle.com/javaee/5/api/javax/persistence/EntityManager.html

EntityManager is an interface with methods for interacting with the persistence context, such as persist, update, delete and so on...

Good definition here http://docs.jboss.org/hibernate/entitymanager/3.5/reference/en/html/architecture.html

The @PersistenceContext is the anotation for the injection of the current persistence context
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic