You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by bu...@apache.org on 2013/02/15 14:23:31 UTC

svn commit: r850702 - in /websites/staging/isis/trunk: cgi-bin/ content/ content/components/objectstores/jdo/dates-blobs-lazy-loading.html

Author: buildbot
Date: Fri Feb 15 13:23:30 2013
New Revision: 850702

Log:
Staging update by buildbot for isis

Modified:
    websites/staging/isis/trunk/cgi-bin/   (props changed)
    websites/staging/isis/trunk/content/   (props changed)
    websites/staging/isis/trunk/content/components/objectstores/jdo/dates-blobs-lazy-loading.html

Propchange: websites/staging/isis/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Feb 15 13:23:30 2013
@@ -1 +1 @@
-1446570
+1446572

Propchange: websites/staging/isis/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Feb 15 13:23:30 2013
@@ -1 +1 @@
-1446570
+1446572

Modified: websites/staging/isis/trunk/content/components/objectstores/jdo/dates-blobs-lazy-loading.html
==============================================================================
--- websites/staging/isis/trunk/content/components/objectstores/jdo/dates-blobs-lazy-loading.html (original)
+++ websites/staging/isis/trunk/content/components/objectstores/jdo/dates-blobs-lazy-loading.html Fri Feb 15 13:23:30 2013
@@ -248,25 +248,21 @@
 <p>For example, the <code>ToDoItem</code> (in the <a href="../../../getting-started/quickstart-archetype.html">wicket/restful/jdo archetype</a>) defines the <code>dueBy</code> property as follows:</p>
 
 <pre>
-public class ToDoItem ... {
-
+  public class ToDoItem ... {
     ...
-
-    // {{ DueBy (property)
     @javax.jdo.annotations.Persistent(defaultFetchGroup="true")
     private LocalDate dueBy;
 
     @MemberOrder(name="Detail", sequence = "3")
     @Optional
     public LocalDate getDueBy() {
-        return dueBy;
+      return dueBy;
     }
-
     public void setDueBy(final LocalDate dueBy) {
-        this.dueBy = dueBy;
+      this.dueBy = dueBy;
     }
-
-    ...</div>
+    ...
+  }
 </pre>
 
 <p><div class="note">
@@ -281,10 +277,9 @@ In DataNucleus 3.2, it will no longer be
 <p>For example, in the <code>ToDoItem</code> (in the <a href="../../../getting-started/quickstart-archetype.html">wicket/restful/jdo archetype</a>) the <code>attachment</code> property is as follows:</p>
 
 <pre>
-public class ToDoItem ... {
+  public class ToDoItem ... {
 
     ...
-    // {{ Attachment (property)
     @javax.jdo.annotations.Persistent(defaultFetchGroup="false")
     private Blob attachment;
 
@@ -292,15 +287,13 @@ public class ToDoItem ... {
     @MemberOrder(name="Detail", sequence = "7")
     @Hidden(where=Where.STANDALONE_TABLES)
     public Blob getAttachment() {
-        return attachment;
+      return attachment;
     }
-
     public void setAttachment(final Blob attachment) {
-        this.attachment = attachment;
+      this.attachment = attachment;
     }
-    // }}
-
-    ...</div>
+    ...
+  }
 </pre>
 
 <p>Here we can see that the property is hidden in standalone tables, and so there's no need to retrieve it eagerly.  The converse of this the object is rendered by itself, then the attachment property will be retrieved as a one separate query; this seems like a reasonable compromise.</p>
@@ -314,10 +307,9 @@ public class ToDoItem ... {
 <p>For example, in the <code>ToDoItem</code> (in the <a href="../../../getting-started/quickstart-archetype.html">wicket/restful/jdo archetype</a>) the <code>dependencies</code> collection is as follows:</p>
 
 <pre>
-public class ToDoItem ... {
+  public class ToDoItem ... {
 
     ...
-    // {{ dependencies (Collection)
     @javax.jdo.annotations.Persistent(table="TODO_DEPENDENCIES")
     @javax.jdo.annotations.Join(column="DEPENDING_TODO_ID")
     @javax.jdo.annotations.Element(column="DEPENDENT_TODO_ID")
@@ -327,14 +319,13 @@ public class ToDoItem ... {
     @MemberOrder(sequence = "1")
     @Render(Type.EAGERLY)
     public SortedSet<ToDoItem> getDependencies() {
-        return dependencies;
+      return dependencies;
     }
-
     public void setDependencies(final SortedSet<ToDoItem> dependencies) {
-        this.dependencies = dependencies;
+      this.dependencies = dependencies;
     }
-    // }}
-    ...</div>
+    ...
+  }
 </pre>
 
 <p>Even though <code>@Render(Type.EAGERLY)</code>, the <code>@javax.jdo.annotations.Persistent</code> annotation leaves the <code>defaultFetchGroup</code> as its default, which for collections is "false".</p>