Skip to content

Commit 0385e22

Browse files
committed
fix transaction on addVertex
1 parent d46e239 commit 0385e22

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

jnosql-tinkerpop/src/main/java/org/eclipse/jnosql/databases/tinkerpop/communication/DefaultTinkerpopGraphDatabaseManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ private Vertex addVertex(CommunicationEntity entity) {
259259
).toArray();
260260
Vertex vertex = graph.addVertex(args);
261261
entity.add(ID, vertex.id());
262+
GraphTransactionUtil.transaction(graph);
262263
return vertex;
263264
}
264265

jnosql-tinkerpop/src/test/java/org/eclipse/jnosql/databases/tinkerpop/cdi/ArangoDeployment.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/*
2+
* Copyright (c) 2022 Contributors to the Eclipse Foundation
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* and Apache License v2.0 which accompanies this distribution.
6+
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
7+
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php.
8+
*
9+
* You may elect to redistribute this code under either of these licenses.
10+
*
11+
* Contributors:
12+
*
13+
* Otavio Santana
14+
*/
115
package org.eclipse.jnosql.databases.tinkerpop.cdi;
216

317
import org.testcontainers.containers.GenericContainer;

0 commit comments

Comments
 (0)