Revision: 11203
http://datanucleus.svn.sourceforge.net/datanucleus/?rev=11203&view=rev
Author: andy_jefferson
Date: 2010-11-21 14:53:20 +0000 (Sun, 21 Nov 2010)
Log Message:
-----------
cache-pin
Modified Paths:
--------------
documentation/accessplatform.datanucleus.org/trunk/docs/jdo/cache.xml
Modified: documentation/accessplatform.datanucleus.org/trunk/docs/jdo/cache.xml
===================================================================
--- documentation/accessplatform.datanucleus.org/trunk/docs/jdo/cache.xml 2010-11-21 14:49:18 UTC (rev 11202)
+++ documentation/accessplatform.datanucleus.org/trunk/docs/jdo/cache.xml 2010-11-21 14:53:20 UTC (rev 11203)
@@ -245,7 +245,20 @@
to re-relate the objects.
</p>
<br/>
+ <img src="../images/nucleus_extension.gif"/>
+ <p>
+ DataNucleus has an extension in metadata allowing the user to define that all instances of a class
+ are automatically <i>pinned</i> in the Level 2 cache.
+ </p>
+ <source><![CDATA[
+@PersistenceCapable
+@Extension(vendorName="datanucleus", key="cache-pin", value="true")
+public class MyClass
+{
+ ...
+}]]></source>
<br/>
+ <br/>
</subsection>
<a name="javax.cache"/>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|