You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2012/12/15 16:39:45 UTC

svn commit: r1422277 - in /isis/site/trunk/content/components/objectstores/jdo: ./ resources/

Author: danhaywood
Date: Sat Dec 15 15:39:43 2012
New Revision: 1422277

URL: http://svn.apache.org/viewvc?rev=1422277&view=rev
Log:
isis site - improving jdo objectstore hints/tips page

Added:
    isis/site/trunk/content/components/objectstores/jdo/resources/eclipse-025-project-properties.png   (with props)
    isis/site/trunk/content/components/objectstores/jdo/resources/eclipse-028-persistence-unit-xml.png   (with props)
Removed:
    isis/site/trunk/content/components/objectstores/jdo/resources/eclipse-020-windows-preferences.png
    isis/site/trunk/content/components/objectstores/jdo/resources/eclipse-040-classpath.png
Modified:
    isis/site/trunk/content/components/objectstores/jdo/hints-and-tips.md

Modified: isis/site/trunk/content/components/objectstores/jdo/hints-and-tips.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/components/objectstores/jdo/hints-and-tips.md?rev=1422277&r1=1422276&r2=1422277&view=diff
==============================================================================
--- isis/site/trunk/content/components/objectstores/jdo/hints-and-tips.md (original)
+++ isis/site/trunk/content/components/objectstores/jdo/hints-and-tips.md Sat Dec 15 15:39:43 2012
@@ -37,7 +37,43 @@ Then turn on Auto-Enhancement:
 
 Update domain object model's classpath to reference DataNucleus JARs:
 
-<img src="resources/eclipse-040-classpath.png"/>
+<pre>
+&lt;dependencies&gt;
+    &lt;dependency&gt;
+        &lt;groupId&gt;org.apache.isis.core&lt;/groupId&gt;
+        &lt;artifactId&gt;isis-core-applib&lt;/artifactId&gt;
+    &lt;/dependency&gt;
+
+    &lt;dependency&gt;
+        &lt;groupId&gt;org.apache.isis.objectstore&lt;/groupId&gt;
+        &lt;artifactId&gt;isis-objectstore-jdo-applib&lt;/artifactId&gt;
+    &lt;/dependency&gt;
+
+    &lt;!-- DataNucleus (horrid, but needed to run the enhancer)--&gt;
+    &lt;dependency&gt;
+        &lt;groupId&gt;javax.jdo&lt;/groupId&gt;
+        &lt;artifactId&gt;jdo-api&lt;/artifactId&gt;
+    &lt;/dependency&gt;
+    &lt;dependency&gt;
+        &lt;groupId&gt;org.datanucleus&lt;/groupId&gt;
+        &lt;artifactId&gt;datanucleus-core&lt;/artifactId&gt;
+    &lt;/dependency&gt;
+    &lt;dependency&gt;
+        &lt;groupId&gt;org.datanucleus&lt;/groupId&gt;
+        &lt;artifactId&gt;datanucleus-enhancer&lt;/artifactId&gt;
+        &lt;exclusions&gt;
+            &lt;exclusion&gt;
+                &lt;groupId&gt;org.ow2.asm&lt;/groupId&gt;
+                &lt;artifactId&gt;asm&lt;/artifactId&gt;
+            &lt;/exclusion&gt;
+        &lt;/exclusions&gt;
+    &lt;/dependency&gt;
+    &lt;dependency&gt;
+        &lt;groupId&gt;org.datanucleus&lt;/groupId&gt;
+        &lt;artifactId&gt;datanucleus-api-jdo&lt;/artifactId&gt;
+        &lt;/dependency&gt;
+&lt;/dependencies&gt;
+</pre>
 
 And tell DataNucleus to use the project classpath:
 
@@ -55,12 +91,25 @@ When the enhancer runs, it will print ou
 
 in `src/main/java/META-INF` of the domain project:
 
-<img src="resources/eclipse-030-persistence-unit-xml.png"/>
+<img src="resources/eclipse-028-persistence-unit-xml.png"/>
+
+Ensure the `persistence-unit` is as specified in the project properties:
+
+<pre>
+&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;
+&lt;persistence xmlns=&quot;http://java.sun.com/xml/ns/persistence&quot;
+    xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
+    xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd&quot; version=&quot;1.0&quot;&gt;
+
+    &lt;persistence-unit name=&quot;quickstart&quot;&gt;
+    &lt;/persistence-unit&gt;
+&lt;/persistence&gt;
+</pre>
 
-### For Eclipse: Windows &gt; Preferences
 
+Then specify the `persistence-unit` in the project properties:
 
-<img src="resources/eclipse-020-windows-preferences.png"  width="600px"/>
+<img src="resources/eclipse-025-project-properties.png"  width="500px"/>
 
 
 ## Workaround for DN versions: using a profile

Added: isis/site/trunk/content/components/objectstores/jdo/resources/eclipse-025-project-properties.png
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/components/objectstores/jdo/resources/eclipse-025-project-properties.png?rev=1422277&view=auto
==============================================================================
Binary file - no diff available.

Propchange: isis/site/trunk/content/components/objectstores/jdo/resources/eclipse-025-project-properties.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: isis/site/trunk/content/components/objectstores/jdo/resources/eclipse-028-persistence-unit-xml.png
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/components/objectstores/jdo/resources/eclipse-028-persistence-unit-xml.png?rev=1422277&view=auto
==============================================================================
Binary file - no diff available.

Propchange: isis/site/trunk/content/components/objectstores/jdo/resources/eclipse-028-persistence-unit-xml.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream