Skip to content

Commit

Permalink
Merge 827ea21 into 484f286
Browse files Browse the repository at this point in the history
  • Loading branch information
velo committed Jun 15, 2016
2 parents 484f286 + 827ea21 commit a410664
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Expand Up @@ -4,8 +4,9 @@ os:
- linux
jdk:
- oraclejdk8
sudo: required
dist: trusty

before_script:
- echo "MAVEN_OPTS='-Xmx3g'" > ~/.mavenrc

install:
- mvn install dependency:go-offline -Pskip-formatter -DskipTests=true -q -f driver/pom.xml -Dfailsafe.timeout=0
Expand Down
2 changes: 1 addition & 1 deletion driver/pom.xml
Expand Up @@ -12,7 +12,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<gremlin.version>3.2.0-incubating</gremlin.version>
<orientdb.version>2.1.15</orientdb.version>
<orientdb.version>2.2.2</orientdb.version>
</properties>

<developers>
Expand Down
Expand Up @@ -151,7 +151,7 @@ public void makeActive() {
this.pool.reCreatePool();
this.database = this.pool.acquire();
} else {
ODatabaseDocumentTx replaceDb = new ODatabaseDocumentTx(this.database.getURL(), this.database.isKeepStorageOpen());
ODatabaseDocumentTx replaceDb = new ODatabaseDocumentTx(this.database.getURL());
replaceDb.open(user, password);
this.database = replaceDb;
}
Expand Down Expand Up @@ -502,7 +502,7 @@ public void close() throws Exception {
throw e;
} catch (Exception e) {
OLogManager.instance().error(this, "Error during context close for db " + url, e);
throw new OException("Error during context close for db " + url, e);
throw new RuntimeException("Error during context close for db " + url, e);
} finally {
try {
database.close();
Expand Down
@@ -1,13 +1,13 @@
package org.apache.tinkerpop.gremlin.orientdb;

import com.orientechnologies.orient.core.db.ODatabaseFactory;
import org.apache.commons.configuration.BaseConfiguration;
import org.apache.commons.configuration.Configuration;
import org.apache.tinkerpop.gremlin.structure.Graph;

import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx;
import com.orientechnologies.orient.core.exception.ODatabaseException;
import com.orientechnologies.orient.core.metadata.schema.OImmutableClass;
import com.orientechnologies.orient.core.metadata.schema.OSchema;
import org.apache.commons.configuration.BaseConfiguration;
import org.apache.commons.configuration.Configuration;
import org.apache.tinkerpop.gremlin.structure.Graph;

public final class OrientGraphFactory {
public static String ADMIN = "admin";
Expand Down Expand Up @@ -120,7 +120,7 @@ protected Configuration getConfiguration(boolean create, boolean open, boolean t
* if true automatically opens the database
*/
protected ODatabaseDocumentTx getDatabase(boolean create, boolean open) {
final ODatabaseDocumentTx db = new ODatabaseFactory().createDatabase("graph", url);
final ODatabaseDocumentTx db = new ODatabaseDocumentTx(url);
if (!db.getURL().startsWith("remote:") && !db.exists()) {
if (create)
db.create();
Expand Down
2 changes: 1 addition & 1 deletion tests-scala/build.sbt
Expand Up @@ -2,7 +2,7 @@ name := "orientdb-tp3-test"
organization := "com.michaelpollmeier"
version := "1.0.0-SNAPSHOT"
scalaVersion := "2.11.7"
val orientDBVersion = "2.1.15"
val orientDBVersion = "2.2.0"

fork := true // if OrientDb version > 2.1-RC5

Expand Down

0 comments on commit a410664

Please sign in to comment.