gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r873787 - in /websites/staging/gora/trunk/content: ./ current/gora-cassandra.html
Date Sat, 10 Aug 2013 01:17:39 GMT
Author: buildbot
Date: Sat Aug 10 01:17:39 2013
New Revision: 873787

Log:
Staging update by buildbot for gora

Modified:
    websites/staging/gora/trunk/content/   (props changed)
    websites/staging/gora/trunk/content/current/gora-cassandra.html

Propchange: websites/staging/gora/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Aug 10 01:17:39 2013
@@ -1 +1 @@
-1511512
+1512549

Modified: websites/staging/gora/trunk/content/current/gora-cassandra.html
==============================================================================
--- websites/staging/gora/trunk/content/current/gora-cassandra.html (original)
+++ websites/staging/gora/trunk/content/current/gora-cassandra.html Sat Aug 10 01:17:39 2013
@@ -139,20 +139,20 @@ enables <a href="http://cassandra.apache
 </ul>
 <h2 id="gora-cassandra-mappings">Gora Cassandra mappings</h2>
 <p>Say we wished to map some Employee data and store it into the CassandraStore.</p>
-<div class="codehilite"><pre><span class="o">&amp;</span><span
class="n">lt</span><span class="p">;</span><span class="n">gora</span><span
class="o">-</span><span class="n">orm</span><span class="o">&amp;</span><span
class="n">gt</span><span class="p">;</span>
-  <span class="o">&amp;</span><span class="n">lt</span><span
class="p">;</span><span class="n">keyspace</span> <span class="n">name</span><span
class="p">=</span>&quot;<span class="n">Employee</span>&quot;
<span class="n">host</span><span class="p">=</span>&quot;<span
class="n">localhost</span>&quot; <span class="n">cluster</span><span
class="p">=</span>&quot;<span class="n">Gora</span> <span class="n">Cassandra</span>
<span class="n">Test</span> <span class="n">Cluster</span>&quot;<span
class="o">&amp;</span><span class="n">gt</span><span class="p">;</span>
-    <span class="o">&amp;</span><span class="n">lt</span><span
class="p">;</span><span class="n">family</span> <span class="n">name</span><span
class="p">=</span>&quot;<span class="n">p</span>&quot;<span
class="o">/&amp;</span><span class="n">gt</span><span class="p">;</span>
-    <span class="o">&amp;</span><span class="n">lt</span><span
class="p">;</span><span class="n">family</span> <span class="n">name</span><span
class="p">=</span>&quot;<span class="n">f</span>&quot;<span
class="o">/&amp;</span><span class="n">gt</span><span class="p">;</span>
-    <span class="o">&amp;</span><span class="n">lt</span><span
class="p">;</span><span class="n">family</span> <span class="n">name</span><span
class="p">=</span>&quot;<span class="n">sc</span>&quot; <span
class="n">type</span><span class="p">=</span>&quot;<span class="n">super</span>&quot;
<span class="o">/&amp;</span><span class="n">gt</span><span
class="p">;</span>
-  <span class="o">&amp;</span><span class="n">lt</span><span
class="p">;</span><span class="o">/</span><span class="n">keyspace</span><span
class="o">&gt;</span>
-
-  <span class="o">&amp;</span><span class="n">lt</span><span
class="p">;</span><span class="n">class</span> <span class="n">name</span><span
class="p">=</span>&quot;<span class="n">org</span><span class="p">.</span><span
class="n">apache</span><span class="p">.</span><span class="n">gora</span><span
class="p">.</span><span class="n">examples</span><span class="p">.</span><span
class="n">generated</span><span class="p">.</span><span class="n">Employee</span>&quot;
<span class="n">keyClass</span><span class="p">=</span>&quot;<span
class="n">java</span><span class="p">.</span><span class="n">lang</span><span
class="p">.</span><span class="n">String</span>&quot; <span class="n">keyspace</span><span
class="p">=</span>&quot;<span class="n">Employee</span>&quot;<span
class="o">&amp;</span><span class="n">gt</span><span class="p">;</span>
-    <span class="o">&amp;</span><span class="n">lt</span><span
class="p">;</span><span class="n">field</span> <span class="n">name</span><span
class="p">=</span>&quot;<span class="n">name</span>&quot;  <span
class="n">family</span><span class="p">=</span>&quot;<span class="n">p</span>&quot;
<span class="n">qualifier</span><span class="p">=</span>&quot;<span
class="n">info</span><span class="p">:</span><span class="n">nm</span>&quot;<span
class="o">/&amp;</span><span class="n">gt</span><span class="p">;</span>
-    <span class="o">&amp;</span><span class="n">lt</span><span
class="p">;</span><span class="n">field</span> <span class="n">name</span><span
class="p">=</span>&quot;<span class="n">dateOfBirth</span>&quot;
 <span class="n">family</span><span class="p">=</span>&quot;<span
class="n">p</span>&quot; <span class="n">qualifier</span><span
class="p">=</span>&quot;<span class="n">info</span><span class="p">:</span><span
class="n">db</span>&quot;<span class="o">/&amp;</span><span
class="n">gt</span><span class="p">;</span>
-    <span class="o">&amp;</span><span class="n">lt</span><span
class="p">;</span><span class="n">field</span> <span class="n">name</span><span
class="p">=</span>&quot;<span class="n">ssn</span>&quot;  <span
class="n">family</span><span class="p">=</span>&quot;<span class="n">p</span>&quot;
<span class="n">qualifier</span><span class="p">=</span>&quot;<span
class="n">info</span><span class="p">:</span><span class="n">sn</span>&quot;<span
class="o">/&amp;</span><span class="n">gt</span><span class="p">;</span>
-    <span class="o">&amp;</span><span class="n">lt</span><span
class="p">;</span><span class="n">field</span> <span class="n">name</span><span
class="p">=</span>&quot;<span class="n">salary</span>&quot; 
<span class="n">family</span><span class="p">=</span>&quot;<span
class="n">p</span>&quot; <span class="n">qualifier</span><span
class="p">=</span>&quot;<span class="n">info</span><span class="p">:</span><span
class="n">sl</span>&quot;<span class="o">/&amp;</span><span
class="n">gt</span><span class="p">;</span>
-  <span class="o">&amp;</span><span class="n">lt</span><span
class="p">;</span><span class="o">/</span><span class="n">class</span><span
class="o">&amp;</span><span class="n">gt</span><span class="p">;</span>
-<span class="o">&amp;</span><span class="n">lt</span><span
class="p">;</span><span class="o">/</span><span class="n">gora</span><span
class="o">-</span><span class="n">orm</span><span class="o">&amp;</span><span
class="n">gt</span><span class="p">;</span>
+<div class="codehilite"><pre><span class="nt">&lt;gora-orm&gt;</span>
+  <span class="nt">&lt;keyspace</span> <span class="na">name=</span><span
class="s">&quot;Employee&quot;</span> <span class="na">host=</span><span
class="s">&quot;localhost&quot;</span> <span class="na">cluster=</span><span
class="s">&quot;Gora Cassandra Test Cluster&quot;</span><span class="nt">&gt;</span>
+    <span class="nt">&lt;family</span> <span class="na">name=</span><span
class="s">&quot;p&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;family</span> <span class="na">name=</span><span
class="s">&quot;f&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;family</span> <span class="na">name=</span><span
class="s">&quot;sc&quot;</span> <span class="na">type=</span><span
class="s">&quot;super&quot;</span> <span class="nt">/&gt;</span>
+  <span class="nt">&lt;/keyspace&gt;</span>
+
+  <span class="nt">&lt;class</span> <span class="na">name=</span><span
class="s">&quot;org.apache.gora.examples.generated.Employee&quot;</span>
<span class="na">keyClass=</span><span class="s">&quot;java.lang.String&quot;</span>
<span class="na">keyspace=</span><span class="s">&quot;Employee&quot;</span><span
class="nt">&gt;</span>
+    <span class="nt">&lt;field</span> <span class="na">name=</span><span
class="s">&quot;name&quot;</span>  <span class="na">family=</span><span
class="s">&quot;p&quot;</span> <span class="na">qualifier=</span><span
class="s">&quot;info:nm&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;field</span> <span class="na">name=</span><span
class="s">&quot;dateOfBirth&quot;</span>  <span class="na">family=</span><span
class="s">&quot;p&quot;</span> <span class="na">qualifier=</span><span
class="s">&quot;info:db&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;field</span> <span class="na">name=</span><span
class="s">&quot;ssn&quot;</span>  <span class="na">family=</span><span
class="s">&quot;p&quot;</span> <span class="na">qualifier=</span><span
class="s">&quot;info:sn&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;field</span> <span class="na">name=</span><span
class="s">&quot;salary&quot;</span>  <span class="na">family=</span><span
class="s">&quot;p&quot;</span> <span class="na">qualifier=</span><span
class="s">&quot;info:sl&quot;</span><span class="nt">/&gt;</span>
+  <span class="nt">&lt;/class&gt;</span>
+<span class="nt">&lt;/gora-orm&gt;</span>
 </pre></div>
 
 



Mime
View raw message