Repository: gora
Updated Branches:
  refs/heads/master 7a0174fa3 -> 96b9e96df


http://git-wip-us.apache.org/repos/asf/gora/blob/71a95b98/gora-orientdb/src/test/java/org/apache/gora/orientdb/store/package-info.java
----------------------------------------------------------------------
diff --git 
a/gora-orientdb/src/test/java/org/apache/gora/orientdb/store/package-info.java 
b/gora-orientdb/src/test/java/org/apache/gora/orientdb/store/package-info.java
new file mode 100644
index 0000000..368af45
--- /dev/null
+++ 
b/gora-orientdb/src/test/java/org/apache/gora/orientdb/store/package-info.java
@@ -0,0 +1,22 @@
+/**
+ * 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.
+ */
+
+/**
+ * Contains tests for OrientDB dataStore CRUD operations.
+ */
+package org.apache.gora.orientdb.store;
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/gora/blob/71a95b98/gora-orientdb/src/test/resources/gora-orientdb-mapping.xml
----------------------------------------------------------------------
diff --git a/gora-orientdb/src/test/resources/gora-orientdb-mapping.xml 
b/gora-orientdb/src/test/resources/gora-orientdb-mapping.xml
new file mode 100644
index 0000000..515ed98
--- /dev/null
+++ b/gora-orientdb/src/test/resources/gora-orientdb-mapping.xml
@@ -0,0 +1,45 @@
+<?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-otd>
+
+    <class name="org.apache.gora.examples.generated.Employee" 
keyClass="java.lang.String" document="frontier">
+        <field name="name" docfield="name" type="string"/>
+        <field name="dateOfBirth" docfield="dateOfBirth" type="long"/>
+        <field name="ssn" docfield="ssn" type="string"/>
+        <field name="salary" docfield="salary" type="integer"/>
+        <field name="boss" docfield="boss" type="any"/>
+        <field name="webpage" docfield="webpage" type="embedded"/>
+    </class>
+
+    <class name="org.apache.gora.examples.generated.WebPage" 
keyClass="java.lang.String" document="webpage">
+        <field name="url" docfield="url" type="string"/>
+        <field name="content" docfield="content" type="binary"/>
+        <field name="parsedContent" docfield="pContent" type="embeddedlist"/>
+        <field name="outlinks" docfield="linksOut" type="embeddedmap"/>
+        <field name="headers" docfield="headers" type="embedded"/>
+        <field name="metadata" docfield="metadata" type="embedded"/>
+        <field name="byteData" docfield="byteData" type="embedded"/>
+        <field name="stringData" docfield="stringData" type="embedded"/>
+    </class>
+
+    <class name="org.apache.gora.examples.generated.TokenDatum" 
keyClass="java.lang.String" document="TokenDatum">
+        <field name="count" docfield="count" type="integer"/>
+    </class>
+
+</gora-otd>

http://git-wip-us.apache.org/repos/asf/gora/blob/71a95b98/gora-orientdb/src/test/resources/gora.properties
----------------------------------------------------------------------
diff --git a/gora-orientdb/src/test/resources/gora.properties 
b/gora-orientdb/src/test/resources/gora.properties
new file mode 100644
index 0000000..5a24e76
--- /dev/null
+++ b/gora-orientdb/src/test/resources/gora.properties
@@ -0,0 +1,23 @@
+# 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.datastore.default=org.apache.gora.orientdb.store.OrientDBStore
+gora.orientdb.server.host=localhost
+gora.orientdb.server.port=2424
+gora.orientdb.user.username=root
+gora.orientdb.user.password=root
+gora.orientdb.database.name=gora
+gora.orientdb.con.pool.size=80
+gora.orientdb.storage.type=memory
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/gora/blob/71a95b98/gora-orientdb/src/test/resources/orientdb-server-config.xml
----------------------------------------------------------------------
diff --git a/gora-orientdb/src/test/resources/orientdb-server-config.xml 
b/gora-orientdb/src/test/resources/orientdb-server-config.xml
new file mode 100644
index 0000000..3cc00d6
--- /dev/null
+++ b/gora-orientdb/src/test/resources/orientdb-server-config.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!--
+   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.
+-->
+
+<orient-server>
+    <network>
+        <protocols>
+            <protocol name="binary"
+                      
implementation="com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary"/>
+            <protocol name="http"
+                      
implementation="com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpDb"/>
+        </protocols>
+        <listeners>
+            <listener ip-address="0.0.0.0" port-range="2424-2430" 
protocol="binary"/>
+            <listener ip-address="0.0.0.0" port-range="2480-2490" 
protocol="http"/>
+        </listeners>
+    </network>
+    <users>
+        <user name="root" password="root" resources="*"/>
+    </users>
+</orient-server>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/gora/blob/71a95b98/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 2c2e20a..57a7f5a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -723,6 +723,7 @@
     <module>gora-hbase</module>
     <module>gora-infinispan</module>
     <module>gora-jcache</module>
+    <module>gora-orientdb</module>
     <!-- module>gora-lucene</module -->
     <module>gora-dynamodb</module>
     <module>gora-couchdb</module>
@@ -776,6 +777,10 @@
     <jsr107.api.version>1.0.0</jsr107.api.version>
     <hazelcast.version>3.6.4</hazelcast.version>
 
+    <!-- OrientDB Dependencies -->
+    <orientdb.version>2.2.22</orientdb.version>
+    <orientqb.version>0.2.0</orientqb.version>
+
     <!-- Testing Dependencies -->
     <junit.version>4.10</junit.version>
 
@@ -1506,6 +1511,37 @@
         <version>${jsr107.api.version}</version>
       </dependency>
 
+      <!-- OrientDB Dependencies -->
+      <dependency>
+        <groupId>com.orientechnologies</groupId>
+        <artifactId>orientdb-client</artifactId>
+        <version>${orientdb.version}</version>
+      </dependency>
+
+      <dependency>
+        <groupId>com.orientechnologies</groupId>
+        <artifactId>orientdb-server</artifactId>
+        <version>${orientdb.version}</version>
+      </dependency>
+
+      <dependency>
+        <groupId>com.orientechnologies</groupId>
+        <artifactId>orientdb-core</artifactId>
+        <version>${orientdb.version}</version>
+      </dependency>
+
+      <dependency>
+        <groupId>com.orientechnologies</groupId>
+        <artifactId>orientdb-graphdb</artifactId>
+        <version>${orientdb.version}</version>
+      </dependency>
+
+      <dependency>
+        <groupId>com.github.raymanrt</groupId>
+        <artifactId>orientqb</artifactId>
+        <version>${orientqb.version}</version>
+      </dependency>
+
       <!-- Testing Dependencies -->
       <dependency>
         <groupId>org.apache.hadoop</groupId>

Reply via email to