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 2014/05/26 19:55:58 UTC
svn commit: r1597619 -
/isis/site/trunk/content/components/objectstores/jdo/mapping-blobs.md
Author: danhaywood
Date: Mon May 26 17:55:57 2014
New Revision: 1597619
URL: http://svn.apache.org/r1597619
Log:
mapping blobs
Modified:
isis/site/trunk/content/components/objectstores/jdo/mapping-blobs.md
Modified: isis/site/trunk/content/components/objectstores/jdo/mapping-blobs.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/components/objectstores/jdo/mapping-blobs.md?rev=1597619&r1=1597618&r2=1597619&view=diff
==============================================================================
--- isis/site/trunk/content/components/objectstores/jdo/mapping-blobs.md (original)
+++ isis/site/trunk/content/components/objectstores/jdo/mapping-blobs.md Mon May 26 17:55:57 2014
@@ -29,7 +29,7 @@ For example, in the `ToDoItem` class (of
The three `@javax.jdo.annotations.Column` annotations are required because the mapping classes that Isis provides ([IsisBlobMapping](https://github.com/apache/isis/blob/isis-1.4.0/component/objectstore/jdo/jdo-datanucleus/src/main/java/org/apache/isis/objectstore/jdo/datanucleus/valuetypes/IsisBlobMapping.java#L59) and [IsisClobMapping](https://github.com/apache/isis/blob/isis-1.4.0/component/objectstore/jdo/jdo-datanucleus/src/main/java/org/apache/isis/objectstore/jdo/datanucleus/valuetypes/IsisClobMapping.java#L59)) map to 3 columns. (It is not an error to omit these `@Column` annotations, but without them the names of the table columns are simply suffixed `_0`, `_1`, `_2` etc.
-If the `Blob` or `Clob` is mandatory, then use:
+If the `Blob` is mandatory, then use:
<pre>
@javax.jdo.annotations.Persistent(defaultFetchGroup="false", columns = {
@@ -63,7 +63,7 @@ Mapping `Clob`s works in a very similar
})
private Clob doc;
- @Mandatory
+ @Optional
public Clob getDoc() {
return doc;
}