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 2013/02/15 14:24:47 UTC
svn commit: r1446573 -
/isis/site/trunk/content/components/objectstores/jdo/dates-blobs-lazy-loading.md
Author: danhaywood
Date: Fri Feb 15 13:24:47 2013
New Revision: 1446573
URL: http://svn.apache.org/r1446573
Log:
isis site - using dates, blobs, lazy loading
Modified:
isis/site/trunk/content/components/objectstores/jdo/dates-blobs-lazy-loading.md
Modified: isis/site/trunk/content/components/objectstores/jdo/dates-blobs-lazy-loading.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/components/objectstores/jdo/dates-blobs-lazy-loading.md?rev=1446573&r1=1446572&r2=1446573&view=diff
==============================================================================
--- isis/site/trunk/content/components/objectstores/jdo/dates-blobs-lazy-loading.md (original)
+++ isis/site/trunk/content/components/objectstores/jdo/dates-blobs-lazy-loading.md Fri Feb 15 13:24:47 2013
@@ -11,20 +11,16 @@ Moreover, these datatypes are *not* in t
For example, the `ToDoItem` (in the [wicket/restful/jdo archetype](../../../getting-started/quickstart-archetype.html)) defines the `dueBy` property as follows:
<pre>
- public class ToDoItem ... {
- ...
- @javax.jdo.annotations.Persistent(defaultFetchGroup="true")
- private LocalDate dueBy;
-
- @MemberOrder(name="Detail", sequence = "3")
- @Optional
- public LocalDate getDueBy() {
- return dueBy;
- }
- public void setDueBy(final LocalDate dueBy) {
- this.dueBy = dueBy;
- }
- ...
+ @javax.jdo.annotations.Persistent(defaultFetchGroup="true")
+ private LocalDate dueBy;
+
+ @MemberOrder(name="Detail", sequence = "3")
+ @Optional
+ public LocalDate getDueBy() {
+ return dueBy;
+ }
+ public void setDueBy(final LocalDate dueBy) {
+ this.dueBy = dueBy;
}
</pre>
@@ -41,22 +37,17 @@ Again, this requires the `@javax.jdo.ann
For example, in the `ToDoItem` (in the [wicket/restful/jdo archetype](../../../getting-started/quickstart-archetype.html)) the `attachment` property is as follows:
<pre>
- public class ToDoItem ... {
+ @javax.jdo.annotations.Persistent(defaultFetchGroup="false")
+ private Blob attachment;
- ...
- @javax.jdo.annotations.Persistent(defaultFetchGroup="false")
- private Blob attachment;
-
- @Optional
- @MemberOrder(name="Detail", sequence = "7")
- @Hidden(where=Where.STANDALONE_TABLES)
- public Blob getAttachment() {
- return attachment;
- }
- public void setAttachment(final Blob attachment) {
- this.attachment = attachment;
- }
- ...
+ @Optional
+ @MemberOrder(name="Detail", sequence = "7")
+ @Hidden(where=Where.STANDALONE_TABLES)
+ public Blob getAttachment() {
+ return attachment;
+ }
+ public void setAttachment(final Blob attachment) {
+ this.attachment = attachment;
}
</pre>
@@ -71,24 +62,19 @@ However, even in the case of collections
For example, in the `ToDoItem` (in the [wicket/restful/jdo archetype](../../../getting-started/quickstart-archetype.html)) the `dependencies` collection is as follows:
<pre>
- public class ToDoItem ... {
-
- ...
- @javax.jdo.annotations.Persistent(table="TODO_DEPENDENCIES")
- @javax.jdo.annotations.Join(column="DEPENDING_TODO_ID")
- @javax.jdo.annotations.Element(column="DEPENDENT_TODO_ID")
- private SortedSet<ToDoItem> dependencies = new TreeSet<ToDoItem>();
-
- @Disabled
- @MemberOrder(sequence = "1")
- @Render(Type.EAGERLY)
- public SortedSet<ToDoItem> getDependencies() {
- return dependencies;
- }
- public void setDependencies(final SortedSet<ToDoItem> dependencies) {
- this.dependencies = dependencies;
- }
- ...
+ @javax.jdo.annotations.Persistent(table="TODO_DEPENDENCIES")
+ @javax.jdo.annotations.Join(column="DEPENDING_TODO_ID")
+ @javax.jdo.annotations.Element(column="DEPENDENT_TODO_ID")
+ private SortedSet<ToDoItem> dependencies = new TreeSet<ToDoItem>();
+
+ @Disabled
+ @MemberOrder(sequence = "1")
+ @Render(Type.EAGERLY)
+ public SortedSet<ToDoItem> getDependencies() {
+ return dependencies;
+ }
+ public void setDependencies(final SortedSet<ToDoItem> dependencies) {
+ this.dependencies = dependencies;
}
</pre>