HHH-6082 - Incorporate EntityManager documentation into main dev guide

This commit is contained in:
Steve Ebersole 2011-12-12 12:17:28 -06:00
parent 9b304942cc
commit 955f21eca9
1 changed files with 11 additions and 1 deletions

View File

@ -63,11 +63,21 @@
are used to allow applications to manage and check the state of transactions.
<interfacename>org.hibernate.Transaction</interfacename> is Hibernate's notion of a logical
transaction. JPA has a similar notion in the
<interfacename>javax.persistence.EntityTransaction</interfacename> interface.
<interfacename>javax.persistence.EntityTransaction</interfacename> interface although it is only
available when using resource-local transactions, whereas access to
<interfacename>org.hibernate.Transaction</interfacename> is always allowed.
</para>
</listitem>
</itemizedlist>
<note>
<para>
<interfacename>javax.persistence.EntityTransaction</interfacename> is only available when using
resource-local transactions. Hibernate allows access to
<interfacename>org.hibernate.Transaction</interfacename> regardless of environment.
</para>
</note>
<para>
<interfacename>org.hibernate.engine.transaction.spi.TransactionFactory</interfacename> is a standard
Hibernate service. See <xref linkend="services-TransactionFactory"/> for details.