Skip to content
This repository was archived by the owner on Feb 12, 2019. It is now read-only.

Commit 469142d

Browse files
committed
fixes graph repository
1 parent 82433c6 commit 469142d

File tree

2 files changed

+10
-74
lines changed

2 files changed

+10
-74
lines changed

artemis-graph/src/main/java/org/jnosql/artemis/graph/query/GraphQueryParserUtil.java

Lines changed: 0 additions & 65 deletions
This file was deleted.

artemis-graph/src/main/java/org/jnosql/artemis/graph/query/GraphRepositoryProxy.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package org.jnosql.artemis.graph.query;
1616

1717
import org.apache.tinkerpop.gremlin.structure.Graph;
18+
import org.jnosql.artemis.Converters;
1819
import org.jnosql.artemis.Repository;
1920
import org.jnosql.artemis.graph.GraphConverter;
2021
import org.jnosql.artemis.graph.GraphTemplate;
@@ -39,18 +40,18 @@ class GraphRepositoryProxy<T, ID> extends AbstractGraphRepositoryProxy<T, ID> {
3940

4041
private final ClassRepresentation classRepresentation;
4142

42-
private final GraphQueryParser queryParser;
43-
4443
private final Graph graph;
4544

4645
private final GraphConverter converter;
4746

4847
private final GraphTemplate template;
4948

49+
private final Converters converters;
50+
5051

5152
GraphRepositoryProxy(GraphTemplate template, ClassRepresentations classRepresentations,
5253
Class<?> repositoryType, Reflections reflections,
53-
Graph graph, GraphConverter converter) {
54+
Graph graph, GraphConverter converter, Converters converters) {
5455

5556
Class<T> typeClass = Class.class.cast(ParameterizedType.class.cast(repositoryType.getGenericInterfaces()[0])
5657
.getActualTypeArguments()[0]);
@@ -59,9 +60,9 @@ class GraphRepositoryProxy<T, ID> extends AbstractGraphRepositoryProxy<T, ID> {
5960
this.converter = converter;
6061
this.reflections = reflections;
6162
this.classRepresentation = classRepresentations.get(typeClass);
62-
this.queryParser = new GraphQueryParser();
6363
this.repository = new GraphRepository(template, classRepresentation);
6464
this.template = template;
65+
this.converters = converters;
6566

6667
}
6768

@@ -75,11 +76,6 @@ protected Repository getRepository() {
7576
return repository;
7677
}
7778

78-
@Override
79-
protected GraphQueryParser getQueryParser() {
80-
return queryParser;
81-
}
82-
8379
@Override
8480
protected Graph getGraph() {
8581
return graph;
@@ -95,6 +91,11 @@ protected GraphTemplate getTemplate() {
9591
return template;
9692
}
9793

94+
@Override
95+
protected Converters getConverters() {
96+
return converters;
97+
}
98+
9899

99100
class GraphRepository extends AbstractGraphRepository implements Repository {
100101

0 commit comments

Comments
 (0)