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>
- <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>
+ <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