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

Commit b9ace08

Browse files
committed
fixes
1 parent 469142d commit b9ace08

File tree

3 files changed

+7
-346
lines changed

3 files changed

+7
-346
lines changed

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

Lines changed: 4 additions & 1 deletion
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.GraphRepositoryProducer;
@@ -39,14 +40,16 @@ class DefaultGraphRepositoryProducer implements GraphRepositoryProducer {
3940
private GraphConverter converter;
4041
@Inject
4142
private GraphTemplateProducer producer;
43+
@Inject
44+
private Converters converters;
4245

4346
@Override
4447
public <E, ID, T extends Repository<E, ID>> T get(Class<T> repositoryClass, Graph manager) {
4548
Objects.requireNonNull(repositoryClass, "repository class is required");
4649
Objects.requireNonNull(manager, "manager class is required");
4750
GraphTemplate template = producer.get(manager);
4851
GraphRepositoryProxy<T, ID> handler = new GraphRepositoryProxy(template,
49-
classRepresentations, repositoryClass, reflections, manager, converter);
52+
classRepresentations, repositoryClass, reflections, manager, converter, converters);
5053
return (T) Proxy.newProxyInstance(repositoryClass.getClassLoader(),
5154
new Class[]{repositoryClass},
5255
handler);

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

Lines changed: 3 additions & 1 deletion
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.DatabaseQualifier;
1920
import org.jnosql.artemis.DatabaseType;
2021
import org.jnosql.artemis.Repository;
@@ -96,9 +97,10 @@ public Repository create(CreationalContext<Repository> creationalContext) {
9697
GraphConverter converter = getInstance(GraphConverter.class);
9798
Graph graph = provider.isEmpty() ? getInstance(Graph.class) :
9899
getInstance(Graph.class, provider);
100+
Converters converters = getInstance(Converters.class);
99101

100102
GraphRepositoryProxy handler = new GraphRepositoryProxy(repository,
101-
classRepresentations, type, reflections, graph, converter);
103+
classRepresentations, type, reflections, graph, converter, converters);
102104
return (Repository) Proxy.newProxyInstance(type.getClassLoader(),
103105
new Class[]{type},
104106
handler);

artemis-graph/src/test/java/org/jnosql/artemis/graph/query/GraphQueryParserTest.java

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

0 commit comments

Comments
 (0)