Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
ca8752a
Started TP3 migration.
gjrwebber Aug 3, 2015
497f237
Merge branch 'develop' into feature/TP3_support
gjrwebber Aug 12, 2015
858f318
Merge branch 'develop' into feature/TP3_support
gjrwebber Sep 24, 2015
fcc1a68
Moved database implementations to their own repository.
gjrwebber Sep 25, 2015
42cb813
More changes for TP3
gjrwebber Sep 25, 2015
dab8ca9
Revert "Moved database implementations to their own repository."
gjrwebber Sep 25, 2015
8e6b8d7
WIP
gjrwebber Sep 30, 2015
31b7ae8
make a few corrections - now BaseRepositoryTest initialization works …
zifnab87 Apr 10, 2017
884184f
replace graph with graph.traversal() 11 tinker passing tests
zifnab87 Apr 11, 2017
4e30c35
fix typo
zifnab87 Apr 11, 2017
e4a0d4b
convert gremlin filter{} to use has()
zifnab87 Apr 11, 2017
0ae3e16
detect iterable return type on string based gremlin queries - 14 tink…
zifnab87 Apr 11, 2017
7429d22
detect iterable return type on native gremlin queries - rename to isC…
zifnab87 Apr 11, 2017
6222a70
correct property retrieval based on new syntax of TP3 - 32 tinker pas…
zifnab87 Apr 11, 2017
e11076d
put toList() in CollectionExecution instead of StringBasedGremling, P…
zifnab87 Apr 11, 2017
bfd937e
fix 2 tests of Tinker_Core_PersonRepositoryTest (findSingleMapByFirst…
zifnab87 Apr 11, 2017
335f67d
fix 1 test (findSingleByFirstName) of Tinker_Core_PersonRepositoryTes…
zifnab87 Apr 11, 2017
0c5cf5a
fix 50 tests by fixing BaseRepositoryTest problematic or() query for …
zifnab87 Apr 11, 2017
85fb5e7
update tinkergraph to latest snapshot and make logging appear in tests
zifnab87 Apr 11, 2017
5342588
fix pageable queries old syntax, offset mistake - 84 tinker passing t…
zifnab87 Apr 11, 2017
a6e97c8
pass value instead of property itself - 110 tinker passing tests
zifnab87 Apr 11, 2017
f428c2f
make warnings go away and make a few tests more robust
zifnab87 Apr 11, 2017
bd1704e
merge with latest of develop
zifnab87 Apr 11, 2017
b86867c
fix unmerged build.gradle
zifnab87 Apr 11, 2017
a98c047
fix versioning of main build.gradle - all tests fail due to overflow …
zifnab87 Apr 11, 2017
ed62c08
reverting some of the changes - trying t ofind the reason of stackove…
zifnab87 Apr 12, 2017
71d4016
a few changes
zifnab87 Apr 12, 2017
a9c8c89
extract versions to variables in main build.gradle
zifnab87 Apr 12, 2017
32e803a
update to latest possible version for spring, spring-data-commons and…
zifnab87 Apr 12, 2017
8575cb5
fix or() queries - 120 tinker passing tests
zifnab87 Apr 12, 2017
ceec729
janusgraph integration was complete - titan was removed - 99 passing …
zifnab87 Apr 12, 2017
36df08f
orientdb integration still cannot be done even with the latest availa…
zifnab87 Apr 13, 2017
4844f0e
fix the use of predicates like, contains etc and fix one test that wa…
zifnab87 Apr 13, 2017
855baca
fix the use of predicates lt, lte, gt, gte etc - 122 passing tinker t…
zifnab87 Apr 13, 2017
6a174fd
fix inconistency of number of likes objects in BaseTest and tests har…
zifnab87 Apr 13, 2017
94e7279
fix findAllEdges and findAllVertices queries - janusgraph passing tes…
zifnab87 Apr 13, 2017
985502c
add labels in each of the has() steps - tinker passing tests: 129/136
zifnab87 Apr 13, 2017
d9d33f9
fix find_from_referenced tests - janus passing tests: 124/136
zifnab87 Apr 14, 2017
d0e352e
add two tests from develop branch
zifnab87 Apr 14, 2017
179841b
one more change from develop branch - tinker passing tests: 128/136
zifnab87 Apr 14, 2017
6d78252
change from develop branch - move transaction managmenet from SimpleG…
zifnab87 Apr 14, 2017
7bc0450
change of getPropertyName from develop branch - tinker passing tests:…
zifnab87 Apr 14, 2017
a742440
change of GremlinTransationManager from develop branch - janus passin…
zifnab87 Apr 14, 2017
49e6724
changes of EmbeddedObject and fieldProperty accessor from develop bra…
zifnab87 Apr 14, 2017
d3200b9
integrating some of the changes of Added ability to override default …
zifnab87 Apr 14, 2017
ce8d3a9
another attempt to merge rest of chenages from develop branch - janus…
zifnab87 Apr 14, 2017
5c6593f
orientdb compiles with many problematic parts - orient passing tests:…
zifnab87 Apr 14, 2017
e202793
fix map problem passing properties instead of values - janus passing …
zifnab87 Apr 14, 2017
f143cfc
add missed tests Janus_Neo4j_EdgeRepositoryTest - janus tests passing…
zifnab87 Apr 14, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
build
.idea/
.gradle/
1 change: 1 addition & 0 deletions .gradle/buildOutputCleanup/cache.properties.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Spring data gremlin makes it easier to implement Graph based repositories. This
## Features

- All the great features of [Spring Data](http://projects.spring.io/spring-data)
- Support for [OrientDB](http://orientdb.com) and [TitanDB](http://s3.thinkaurelius.com/docs/titan/current) out of the box
- Support for [OrientDB](http://orientdb.com) and [JanusGraph](http://janusgraph.org) out of the box
- Schema creation in supported databases
- Support to build repositories based on Spring using our [custom set of annotations](https://github.com/gjrwebber/org/springframework/data/gremlin/annotation), [spring-data-neo4j](http://docs.spring.io/spring-data/neo4j/docs/current/reference/html/#reference_programming-model_annotations) or JPA annotations.
- Vertex and Edge repository support
Expand Down Expand Up @@ -98,7 +98,7 @@ Once you have your build configuration setup you need to add the correct depende

#### Database dependency
**OrientDB** - com.github.gjrwebber:spring-data-gremlin-orientdb:0.1.0-SNAPSHOT
**TitanDB** - com.github.gjrwebber:spring-data-gremlin-titan:0.1.0-SNAPSHOT
**JanusGraph** - com.github.gjrwebber:spring-data-gremlin-janus:0.1.0-SNAPSHOT

#### Schema generator dependency
**Default** - No further dependency
Expand All @@ -124,10 +124,10 @@ Using OrientDB database with Neo4j schema generator:

#### Gradle example

Using TitanDB with default schema generator:
Using JanusGraph with default schema generator:

```
compile("com.github.gjrwebber:spring-data-gremlin-titan:0.1.0-SNAPSHOT")
compile("com.github.gjrwebber:spring-data-gremlin-janus:0.1.0-SNAPSHOT")
```

### Create you domain model
Expand Down
65 changes: 48 additions & 17 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ buildscript {
}

ext {
springVersion = "4.2.4.RELEASE"

springVersion = "4.3.7.RELEASE"
gremlinVersion = "3.3.0-SNAPSHOT"
jacksonVersion = "2.8.8"
}


Expand All @@ -25,31 +28,55 @@ allprojects {
apply plugin: 'propdeps-eclipse'

sourceCompatibility = 1.7
version = '0.1.1-SNAPSHOT'
version = '0.2.0-SNAPSHOT'
group = 'com.github.gjrwebber'

repositories {
mavenLocal()
maven { url 'https://repo.spring.io/libs-release' }
maven { url 'https://repo.spring.io/libs-snapshot' }
maven { url 'http://repository.apache.org/snapshots' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://oss.sonatype.org/service/local/staging/deploy/maven2' }
maven { url 'https://maven.oracle.com'}
maven { url "https://jitpack.io" }
mavenCentral()
}

dependencies {
compile("org.springframework:spring-core:${springVersion}")
compile("org.springframework:spring-context:${springVersion}")
compile("org.springframework:spring-tx:${springVersion}")
compile('org.springframework.data:spring-data-commons:1.11.0.RELEASE')
compile('com.tinkerpop.blueprints:blueprints-core:2.6.0')
compile('com.tinkerpop.gremlin:gremlin-java:2.6.0')
compile('com.tinkerpop.gremlin:gremlin-groovy:2.6.0')
compile('org.springframework.data:spring-data-commons:1.13.1.RELEASE')
compile("org.apache.tinkerpop:gremlin-core:${gremlinVersion}") {
exclude group: 'com.carrotsearch'
}
compile('com.carrotsearch:hppc:0.6.0')
compile("org.apache.tinkerpop:gremlin-driver:${gremlinVersion}") {
exclude group: 'com.carrotsearch'
}
compile("org.apache.tinkerpop:gremlin-groovy:${gremlinVersion}") {
exclude group: 'com.carrotsearch'
}
compile("org.apache.tinkerpop:tinkergraph-gremlin:${gremlinVersion}") {
exclude group: 'com.carrotsearch'
}

compile('org.apache.commons:commons-collections4:4.0')
compile('org.apache.commons:commons-lang3:3.4')
compile('org.reflections:reflections:0.9.9-RC1')
compile('org.reflections:reflections:0.9.9-RC1') {
exclude group: 'com.google.guava'
}

compile('com.google.guava:guava:19.0')
compile("com.fasterxml.jackson.core:jackson-core:${jacksonVersion}")
compile("com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}")
compile("com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}")
compile('org.slf4j:slf4j-simple:1.7.7')
testCompile('junit:junit:4.12')
testCompile('org.mockito:mockito-core:1.10.19')
testCompile("org.springframework:spring-test:${springVersion}")
// testCompile('org.slf4j:slf4j-simple:1.7.7')

}

task javadocJar(type: Jar) {
Expand Down Expand Up @@ -77,15 +104,15 @@ allprojects {
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
//beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
// repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
// authentication(userName: ossrhUsername, password: ossrhPassword)
// }
//
// snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
// authentication(userName: ossrhUsername, password: ossrhPassword)
// }

pom.project {
name 'Spring Data Gremlin'
Expand Down Expand Up @@ -126,6 +153,11 @@ allprojects {
name 'Graham Webber'
email '[email protected]'
}
developer {
id 'zifnab87'
name 'Michail Michailidis'
email '[email protected]'
}
}
}
}
Expand All @@ -135,4 +167,3 @@ allprojects {
}



3 changes: 3 additions & 0 deletions out/test/spring-data-gremlin-core/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

logging.level.org.springframework.data.gremlin=DEBUG
#logging.level.org.springframework=DEBUG
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include 'spring-data-gremlin-core', 'spring-data-gremlin-test', 'spring-data-gremlin-schemagen-jpa', 'spring-data-gremlin-schemagen-neo4j', 'spring-data-gremlin-orientdb', 'spring-data-gremlin-tinker', 'spring-data-gremlin-titan'
include 'spring-data-gremlin-core', 'spring-data-gremlin-test', 'spring-data-gremlin-schemagen-jpa', 'spring-data-gremlin-schemagen-neo4j', 'spring-data-gremlin-orientdb', 'spring-data-gremlin-tinker', 'spring-data-gremlin-janus'
rootProject.name = 'spring-data-gremlin'

1 change: 1 addition & 0 deletions spring-data-gremlin-core/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
logging.level.org.springframework.data.gremlin=DEBUG
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.springframework.data.gremlin.annotation;

import com.tinkerpop.blueprints.Direction;

import org.apache.tinkerpop.gremlin.structure.Direction;

import java.lang.annotation.*;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.springframework.data.gremlin.annotation;

import com.tinkerpop.blueprints.Direction;

import org.apache.tinkerpop.gremlin.structure.Direction;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,6 @@ private boolean isMapQuery() {
private boolean isCompositeQuery() {
return method.getReturnedObjectType() == CompositeResult.class;
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import org.springframework.data.gremlin.schema.GremlinSchemaFactory;
import org.springframework.data.gremlin.tx.GremlinGraphFactory;

import java.util.Collection;

/**
* Native query abstraction for {@link AbstractGremlinQuery}s.
*
Expand All @@ -23,6 +25,7 @@ public abstract class AbstractNativeGremlinQuery extends AbstractGremlinQuery {
public AbstractNativeGremlinQuery(GremlinGraphFactory dbf, GremlinQueryMethod method, GremlinSchemaFactory schemaFactory, GremlinGraphAdapter graphAdapter, String query) {
super(schemaFactory, method, graphAdapter);


this.dbf = dbf;
this.method = method;
this.schemaFactory = schemaFactory;
Expand Down Expand Up @@ -61,4 +64,5 @@ protected boolean isCountQuery() {
protected boolean isModifyingQuery() {
return modifyingQuery;
}

}
Loading