Return-Path: X-Original-To: apmail-gora-commits-archive@www.apache.org Delivered-To: apmail-gora-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C71610A8C for ; Sat, 10 Aug 2013 01:17:54 +0000 (UTC) Received: (qmail 41991 invoked by uid 500); 10 Aug 2013 01:17:54 -0000 Delivered-To: apmail-gora-commits-archive@gora.apache.org Received: (qmail 41952 invoked by uid 500); 10 Aug 2013 01:17:53 -0000 Mailing-List: contact commits-help@gora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@gora.apache.org Delivered-To: mailing list commits@gora.apache.org Received: (qmail 41945 invoked by uid 99); 10 Aug 2013 01:17:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Aug 2013 01:17:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Aug 2013 01:17:52 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 6990B2388831; Sat, 10 Aug 2013 01:17:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1512549 - /gora/site/trunk/content/current/gora-cassandra.md Date: Sat, 10 Aug 2013 01:17:32 -0000 To: commits@gora.apache.org From: lewismc@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130810011732.6990B2388831@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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> + + + + + + - <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