• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is persistencecontext and EntityManager ?  RSS feed

 
Soumya Ranjan Mohanty
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.
 
Thiago Alves de Moraes
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!