You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by mn...@apache.org on 2010/06/18 15:14:13 UTC
svn commit: r955997 -
/incubator/aries/trunk/samples-sandbox/wordassociation-sample/demoscript.html
Author: mnuttall
Date: Fri Jun 18 13:14:13 2010
New Revision: 955997
URL: http://svn.apache.org/viewvc?rev=955997&view=rev
Log:
Fix small typos and errors
Modified:
incubator/aries/trunk/samples-sandbox/wordassociation-sample/demoscript.html
Modified: incubator/aries/trunk/samples-sandbox/wordassociation-sample/demoscript.html
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/wordassociation-sample/demoscript.html?rev=955997&r1=955996&r2=955997&view=diff
==============================================================================
--- incubator/aries/trunk/samples-sandbox/wordassociation-sample/demoscript.html (original)
+++ incubator/aries/trunk/samples-sandbox/wordassociation-sample/demoscript.html Fri Jun 18 13:14:13 2010
@@ -340,7 +340,7 @@ so we need a service that gives us a wor
<p class="instruction">Right click on the newly created project, do <b>New→Interface</b>, and
</p>
<p style="field">
-Package: org.apache.samples.wordassociation
+Package: org.apache.wordassociation
Name: WordGetterService.
</p>
Add the following method:
@@ -356,7 +356,7 @@ Add the following method:
Right click on the newly created project, do <b>New→Interface</b>, and
</p>
<p style="field">
-Package: org.apache.samples.wordassociation
+Package: org.apache.wordassociation
Name: AssociationRecorderService.
</p>
@@ -509,8 +509,8 @@ Add the following content to the doPost(
String previousAssociation = null;
if (recorder != null) {
+ pr33eviousAssociation = recorder.getLastAssociation(word);
recorder.recordAssociation(word, association);
- previousAssociation = recorder.getLastAssociation(word);
}
PrintWriter out = response.getWriter();
out.println("The last person associated " + word + " with "
@@ -624,7 +624,7 @@ org.apache.openjpa.enhance, and org.apac
Import-Package: javax.persistence,
org.apache.openjpa.enhance,
org.apache.openjpa.util,
- org.apache.samples.wordassociation
+ org.apache.wordassociation
</p>
<h4>Defining the entity</h4>
@@ -740,6 +740,16 @@ stubs for the interface methods.
and right click, choose <strong>Source→Generate getters and setters</strong>
and generate a setter (but no getter).</p>
+<p class="code">
+ private EntityManager em;
+</p>
+
+<p class="code">
+ public void setEntityManager(EntityManager em) {
+ this.em = em;
+ }
+</p>
+
<p class="dialogue">
The cool thing here is that we didn't have to do anything to initialize the
JPA entity manager - it gets injected for us. Now we just need to fill in