gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewi...@apache.org
Subject svn commit: r1512549 - /gora/site/trunk/content/current/gora-cassandra.md
Date Sat, 10 Aug 2013 01:17:32 GMT
Author: lewismc
Date: Sat Aug 10 01:17:32 2013
New Revision: 1512549

URL: http://svn.apache.org/r1512549
Log:
CMS commit to gora by lewismc

Modified:
    gora/site/trunk/content/current/gora-cassandra.md

Modified: gora/site/trunk/content/current/gora-cassandra.md
URL: http://svn.apache.org/viewvc/gora/site/trunk/content/current/gora-cassandra.md?rev=1512549&r1=1512548&r2=1512549&view=diff
==============================================================================
--- gora/site/trunk/content/current/gora-cassandra.md (original)
+++ gora/site/trunk/content/current/gora-cassandra.md Sat Aug 10 01:17:32 2013
@@ -14,20 +14,20 @@ enables [Apache Cassandra](http://cassan
 ##Gora Cassandra mappings 
 Say we wished to map some Employee data and store it into the CassandraStore.
 
-    <gora-orm>
-      <keyspace name="Employee" host="localhost" cluster="Gora Cassandra Test Cluster">
-        <family name="p"/>
-        <family name="f"/>
-        <family name="sc" type="super" />
-      </keyspace>
+    <gora-orm>
+      <keyspace name="Employee" host="localhost" cluster="Gora Cassandra Test Cluster">
+        <family name="p"/>
+        <family name="f"/>
+        <family name="sc" type="super" />
+      </keyspace>
 
-      &lt;class name="org.apache.gora.examples.generated.Employee" keyClass="java.lang.String"
keyspace="Employee"&gt;
-        &lt;field name="name"  family="p" qualifier="info:nm"/&gt;
-        &lt;field name="dateOfBirth"  family="p" qualifier="info:db"/&gt;
-        &lt;field name="ssn"  family="p" qualifier="info:sn"/&gt;
-        &lt;field name="salary"  family="p" qualifier="info:sl"/&gt;
-      &lt;/class&gt;
-    &lt;/gora-orm&gt;
+      <class name="org.apache.gora.examples.generated.Employee" keyClass="java.lang.String"
keyspace="Employee">
+        <field name="name"  family="p" qualifier="info:nm"/>
+        <field name="dateOfBirth"  family="p" qualifier="info:db"/>
+        <field name="ssn"  family="p" qualifier="info:sn"/>
+        <field name="salary"  family="p" qualifier="info:sl"/>
+      </class>
+    </gora-orm>
 
 Here you can see that within the keyspace section we specify the Cassandra 
 keyspace schema name Employee, the host localhost and the cluster name 



Mime
View raw message