Author: buildbot
Date: Thu Aug 25 07:10:57 2011
New Revision: 794901

Log:
Staging update by buildbot

Modified:
    
websites/staging/openejb/trunk/content/configuring-persistenceunits-in-tests.html

Modified: 
websites/staging/openejb/trunk/content/configuring-persistenceunits-in-tests.html
==============================================================================
--- 
websites/staging/openejb/trunk/content/configuring-persistenceunits-in-tests.html
 (original)
+++ 
websites/staging/openejb/trunk/content/configuring-persistenceunits-in-tests.html
 Thu Aug 25 07:10:57 2011
@@ -236,6 +236,21 @@ provider (in this case Hibernate).  With
 understand or modify these properties.  Details on that one exception
 below.</p>
 
+<h3>Common mistakes</h3>
+
+<p>Note that you <strong>must</strong> use the <strong>unit name</strong> as 
the prefix.  This will not work:</p>
+
+<pre><code>    Properties p = new Properties();
+    
p.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.openejb.client.LocalInitialContextFactory");
+
+    p.put("hibernate.hbm2ddl.auto", "update");
+    p.put("hibernate.dialect", "org.hibernate.dialect.HSQLDialect");
+
+    context = new InitialContext(p);
+</code></pre>
+
+<p>Currently, only properties that start with the unit name are search and 
applied.</p>
+
 <h3>No need to specify a "transaction lookup" property</h3>
 
 <p>All vendors have such a property for getting a reference to the container's
@@ -254,7 +269,7 @@ will be automatically set by OpenEJB to
 is already set in the persistence unit it will be overwritten if it starts
 with the standard "org.hibernate.transaction." prefix.  </p>
 
-<p>Custom lookup implementations will never be overwritten.</p>
+<p>Custom lookup implementations will never be overwritten automatically.</p>
 
 <h4>Provider oracle.toplink.essentials.PersistenceProvider</h4>
 
@@ -266,7 +281,7 @@ If the property is already set in the pe
 overwritten if it starts with the standard "oracle.toplink.transaction."
 prefix.  </p>
 
-<p>Custom transaction controller implementations will never be overwritten.</p>
+<p>Custom transaction controller implementations will never be overwritten 
automatically.</p>
 
 <h4>Provider org.eclipse.persistence.jpa.PersistenceProvider</h4>
 
@@ -278,7 +293,7 @@ automatically set by OpenEJB to
 is already set in the persistence unit it will be overwritten if it starts
 with the standard "org.eclipse.persistence.transaction." prefix.  </p>
 
-<p>Custom transaction controller implementations will never be overwritten.</p>
+<p>Custom transaction controller implementations will never be overwritten 
automatically.</p>
 
 <h4>Provider org.apache.openjpa.persistence.PersistenceProviderImpl</h4>
 


Reply via email to