Skip to content

Commit 19cabf9

Browse files
authored
Merge pull request #310 from eclipse-jnosql/fix-defaultgraphtemplate-cdi-initialization
Changed the class to enable CDI inicialization by Quarkus Arc implementation
2 parents b09bf7a + 9fdf8f0 commit 19cabf9

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

jnosql-tinkerpop/src/main/java/org/eclipse/jnosql/databases/tinkerpop/mapping/DefaultGraphTemplate.java

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,12 @@
3333
@Database(GRAPH)
3434
class DefaultGraphTemplate extends AbstractGraphTemplate {
3535

36-
private final EntityConverter converter;
37-
38-
private final GraphDatabaseManager manager;
39-
40-
private final EventPersistManager eventManager;
41-
42-
private final EntitiesMetadata entities;
43-
44-
private final Converters converters;
45-
private final Graph graph;
46-
36+
private EntityConverter converter;
37+
private GraphDatabaseManager manager;
38+
private EventPersistManager eventManager;
39+
private EntitiesMetadata entities;
40+
private Converters converters;
41+
private Graph graph;
4742

4843
@Inject
4944
DefaultGraphTemplate(EntityConverter converter, Graph graph,
@@ -57,9 +52,11 @@ class DefaultGraphTemplate extends AbstractGraphTemplate {
5752
this.manager = GraphDatabaseManager.of(graph);
5853
}
5954

60-
DefaultGraphTemplate() {
61-
this(null, null, null, null, null);
62-
}
55+
/**
56+
* Constructor for CDI
57+
*/
58+
@Deprecated
59+
DefaultGraphTemplate() {}
6360

6461
@Override
6562
protected EntityConverter converter() {

0 commit comments

Comments
 (0)