Mark's Blog

Wednesday, September 7, 2011

Persistent Context vs. Entity Manager vs. Transaction

These definitions are from the link: http://docs.jboss.org/hibernate/entitymanager/3.6/reference/en/html/architecture.html
"Entity Manager
The EntityManager API is used to access a database in a particular unit of work. It is used to create and remove persistent entity instances, to find entities by their primary key identity, and to query over all entities. This interface is similar to the Session in Hibernate.
Persistence context

A persistence context is a set of entity instances in which for any persistent entity identity there is a unique entity instance. Within the persistence context, the entity instances and their lifecycle is managed by a particular entity manager. The scope of this context can either be the transaction, or an extended unit of work."
Posted by Mark Chen at 4:45 PM
Labels: EJB3, JTA

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Mark Chen
I am a senior software designer and developer and specialize in developing Java/JEE,SOA and Web enterprise applications. I am always interested in learning some new stuff.
View my complete profile

See My LinkedIn Profile

View Mark Chen's profile on LinkedIn

Labels

  • Adapter (4)
  • Bpel (3)
  • Cluster (1)
  • Design Pattern (1)
  • EJB3 (3)
  • Glassfish (2)
  • Java (3)
  • JavaScript (2)
  • JAXB (3)
  • JCAPS (1)
  • JDBC (1)
  • JDeveloper (2)
  • JMS (6)
  • JTA (2)
  • Maven (1)
  • MDS (2)
  • NetBeans (1)
  • OpenESB (2)
  • Oracle (1)
  • Oracle AQ (1)
  • Oracle Database (2)
  • Oracle EBS (2)
  • Oracle Fusion (1)
  • Oracle OSB (2)
  • Oracle SOA (18)
  • OSB (3)
  • OWSM (2)
  • PL/SQL (1)
  • REST (1)
  • Schematron (1)
  • Security (1)
  • Spring (5)
  • SQL (1)
  • Subversion (1)
  • Testing (1)
  • UKASH virus (1)
  • WebCenter Content (1)
  • Weblogic (2)
  • WSDL (2)
  • XML (1)
  • XPath (1)
  • XQuery (3)
  • XSD (3)
  • XSLT (3)

Blog Archive

  • ►  2015 (1)
    • ►  March (1)
  • ►  2014 (9)
    • ►  October (1)
    • ►  September (1)
    • ►  June (2)
    • ►  May (3)
    • ►  April (1)
    • ►  March (1)
  • ►  2013 (18)
    • ►  November (1)
    • ►  September (1)
    • ►  August (1)
    • ►  July (3)
    • ►  June (1)
    • ►  April (1)
    • ►  February (9)
    • ►  January (1)
  • ►  2012 (13)
    • ►  December (2)
    • ►  November (2)
    • ►  October (1)
    • ►  September (2)
    • ►  July (1)
    • ►  June (1)
    • ►  April (2)
    • ►  January (2)
  • ▼  2011 (39)
    • ►  December (2)
    • ►  November (2)
    • ►  October (3)
    • ▼  September (3)
      • Two scenarios of invoking asychronous service from...
      • Using MDS in JDeveloper
      • Persistent Context vs. Entity Manager vs. Transaction
    • ►  August (9)
    • ►  July (2)
    • ►  June (5)
    • ►  May (1)
    • ►  April (1)
    • ►  March (5)
    • ►  February (5)
    • ►  January (1)

Followers

Simple theme. Theme images by merrymoonmary. Powered by Blogger.