You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2012/04/23 04:29:02 UTC
svn commit: r1329031 - /openejb/site/trunk/content/openjpa.mdtext
Author: dblevins
Date: Mon Apr 23 02:29:02 2012
New Revision: 1329031
URL: http://svn.apache.org/viewvc?rev=1329031&view=rev
Log:
formatting
Modified:
openejb/site/trunk/content/openjpa.mdtext
Modified: openejb/site/trunk/content/openjpa.mdtext
URL: http://svn.apache.org/viewvc/openejb/site/trunk/content/openjpa.mdtext?rev=1329031&r1=1329030&r2=1329031&view=diff
==============================================================================
--- openejb/site/trunk/content/openjpa.mdtext (original)
+++ openejb/site/trunk/content/openjpa.mdtext Mon Apr 23 02:29:02 2012
@@ -1,7 +1,7 @@
Title: OpenJPA
OpenJPA is bundled with OpenEJB as the default persistence provider.
-An example of working persistence.xml for OpenJPA:
+An example of working `persistence.xml` for OpenJPA:
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
@@ -11,8 +11,7 @@ An example of working persistence.xml f
<class>org.superbiz.injection.jpa.Movie</class>
<properties>
- <property name="openjpa.jdbc.SynchronizeMappings"
- value="buildSchema(ForeignKeys=true)"/>
+ <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
</properties>
</persistence-unit>
</persistence>
@@ -105,11 +104,8 @@ unless explicitly set otherwise in the b
### Solutions
You can either:
-1. Change your bean or it's method to use
-TransactionAttributeType.NOT_REQUIRED or TransactionAttributeType.NEVER
-which will guarantee it will not be invoked in a JTA transaction.
-1. Change your persistence.xml so the persistence-unit uses
-transaction-type="TRANSACTION" making it capable of participating in a JTA
-transaction.
+
+1. Change your bean or it's method to use `TransactionAttributeType.NOT_REQUIRED` or `TransactionAttributeType.NEVER` which will guarantee it will not be invoked in a JTA transaction.
+1. Change your persistence.xml so the persistence-unit uses `transaction-type="TRANSACTION"` making it capable of participating in a JTA transaction.