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>
+<dependencies>
+ <dependency>
+ <groupId>org.apache.isis.core</groupId>
+ <artifactId>isis-core-applib</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.isis.objectstore</groupId>
+ <artifactId>isis-objectstore-jdo-applib</artifactId>
+ </dependency>
+
+ <!-- DataNucleus (horrid, but needed to run the enhancer)-->
+ <dependency>
+ <groupId>javax.jdo</groupId>
+ <artifactId>jdo-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.datanucleus</groupId>
+ <artifactId>datanucleus-core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.datanucleus</groupId>
+ <artifactId>datanucleus-enhancer</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>org.ow2.asm</groupId>
+ <artifactId>asm</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.datanucleus</groupId>
+ <artifactId>datanucleus-api-jdo</artifactId>
+ </dependency>
+</dependencies>
+</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>
+<?xml version="1.0" encoding="UTF-8" ?>
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
+
+ <persistence-unit name="quickstart">
+ </persistence-unit>
+</persistence>
+</pre>
-### For Eclipse: Windows > 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