You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gora.apache.org by le...@apache.org on 2016/08/23 22:06:52 UTC
[3/5] gora git commit: GORA-437 added mapping file to goraci
GORA-437 added mapping file to goraci
Project: http://git-wip-us.apache.org/repos/asf/gora/repo
Commit: http://git-wip-us.apache.org/repos/asf/gora/commit/c0031ab5
Tree: http://git-wip-us.apache.org/repos/asf/gora/tree/c0031ab5
Diff: http://git-wip-us.apache.org/repos/asf/gora/diff/c0031ab5
Branch: refs/heads/master
Commit: c0031ab5ff9acfee04b8d0cc8ac53b0ae06fe19b
Parents: d6c820b
Author: cihad guzel <cg...@gmail.com>
Authored: Thu May 19 10:16:34 2016 +0300
Committer: cihad guzel <cg...@gmail.com>
Committed: Sun Aug 21 22:56:09 2016 +0300
----------------------------------------------------------------------
.../src/main/resources/gora-couchdb-mapping.xml | 41 ++++++++++++++++++++
gora-goraci/src/main/resources/gora.properties | 6 +++
2 files changed, 47 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/gora/blob/c0031ab5/gora-goraci/src/main/resources/gora-couchdb-mapping.xml
----------------------------------------------------------------------
diff --git a/gora-goraci/src/main/resources/gora-couchdb-mapping.xml b/gora-goraci/src/main/resources/gora-couchdb-mapping.xml
new file mode 100644
index 0000000..2cbee77
--- /dev/null
+++ b/gora-goraci/src/main/resources/gora-couchdb-mapping.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!--
+ Gora Mapping file for CouchDB Backend
+-->
+<gora-otd>
+
+ <class name="org.apache.gora.tutorial.log.generated.Pageview" keyClass="java.lang.Long" document="AccessLog">
+ <field name="url"/>
+ <field name="timestamp"/>
+ <field name="ip"/>
+ <field name="httpMethod"/>
+ <field name="httpStatusCode"/>
+ <field name="responseSize"/>
+ <field name="referrer"/>
+ <field name="userAgent"/>
+ </class>
+
+ <class name="org.apache.gora.tutorial.log.generated.MetricDatum" keyClass="java.lang.String" document="Metrics">
+ <field name="metricDimension"/>
+ <field name="timestamp"/>
+ <field name="metric"/>
+ </class>
+
+</gora-otd>
http://git-wip-us.apache.org/repos/asf/gora/blob/c0031ab5/gora-goraci/src/main/resources/gora.properties
----------------------------------------------------------------------
diff --git a/gora-goraci/src/main/resources/gora.properties b/gora-goraci/src/main/resources/gora.properties
index 735345d..7884d76 100644
--- a/gora-goraci/src/main/resources/gora.properties
+++ b/gora-goraci/src/main/resources/gora.properties
@@ -122,3 +122,9 @@ gora.datastore.accumulo.password=drowssap
#######################
#gora.datastore.default=org.apache.gora.goraci.mock.store.MockDataStore
#gora.datastore.autocreateschema=true
+
+###############################
+# Default CouchDB properties #
+###############################
+#gora.datastore.default=org.apache.gora.couchdb.store.CouchDBStore
+#gora.datastore.couchdb.instance=goraCITest
\ No newline at end of file