diff --git a/src/main/java/com/arangodb/springframework/core/ArangoOperations.java b/src/main/java/com/arangodb/springframework/core/ArangoOperations.java index 03d8c8fe..2896ffb5 100644 --- a/src/main/java/com/arangodb/springframework/core/ArangoOperations.java +++ b/src/main/java/com/arangodb/springframework/core/ArangoOperations.java @@ -105,6 +105,8 @@ default ArangoCursor query(String query, Map bindVars, Cl * * @param query * An AQL query string + * @param options + * Additional options that will be passed to the query API, can be null * @param entityClass * The entity type of the result * @return cursor of the results diff --git a/src/main/java/com/arangodb/springframework/core/convert/resolver/EdgeFromResolver.java b/src/main/java/com/arangodb/springframework/core/convert/resolver/EdgeFromResolver.java index c8157611..71e9e9f3 100644 --- a/src/main/java/com/arangodb/springframework/core/convert/resolver/EdgeFromResolver.java +++ b/src/main/java/com/arangodb/springframework/core/convert/resolver/EdgeFromResolver.java @@ -34,8 +34,11 @@ */ public class EdgeFromResolver extends AbstractResolver implements RelationResolver { + private final ArangoOperations template; + public EdgeFromResolver(final ArangoOperations template, QueryTransactionBridge transactionBridge) { - super(template, transactionBridge); + super(template.getConverter().getConversionService(), transactionBridge); + this.template = template; } @Override diff --git a/src/main/java/com/arangodb/springframework/core/convert/resolver/EdgeToResolver.java b/src/main/java/com/arangodb/springframework/core/convert/resolver/EdgeToResolver.java index f5d029d2..03d0578b 100644 --- a/src/main/java/com/arangodb/springframework/core/convert/resolver/EdgeToResolver.java +++ b/src/main/java/com/arangodb/springframework/core/convert/resolver/EdgeToResolver.java @@ -34,8 +34,11 @@ */ public class EdgeToResolver extends AbstractResolver implements RelationResolver { + private final ArangoOperations template; + public EdgeToResolver(final ArangoOperations template, QueryTransactionBridge transactionBridge) { - super(template, transactionBridge); + super(template.getConverter().getConversionService(), transactionBridge); + this.template = template; } @Override diff --git a/src/main/java/com/arangodb/springframework/transaction/ArangoTransactionManager.java b/src/main/java/com/arangodb/springframework/transaction/ArangoTransactionManager.java index 52e9ae74..8a1fe19f 100644 --- a/src/main/java/com/arangodb/springframework/transaction/ArangoTransactionManager.java +++ b/src/main/java/com/arangodb/springframework/transaction/ArangoTransactionManager.java @@ -114,7 +114,7 @@ protected void doBegin(Object transaction, TransactionDefinition definition) thr /** * Commit the current stream transaction. The query bridge is cleared - * afterwards. + * afterward. * * @see ArangoDatabase#commitStreamTransaction(String) * @see QueryTransactionBridge#clearCurrentTransaction() @@ -147,7 +147,7 @@ protected void doCommit(DefaultTransactionStatus status) throws TransactionExcep /** * Roll back the current stream transaction. The query bridge is cleared - * afterwards. + * afterward. * * @see ArangoDatabase#abortStreamTransaction(String) * @see QueryTransactionBridge#clearCurrentTransaction() @@ -169,7 +169,7 @@ protected void doRollback(DefaultTransactionStatus status) throws TransactionExc /** * Check if the transaction object has the bound holder. For new - * transactions the holder will be bound afterwards. + * transactions the holder will be bound afterward. */ @Override protected boolean isExistingTransaction(Object transaction) throws TransactionException { @@ -189,7 +189,6 @@ protected void doSetRollbackOnly(DefaultTransactionStatus status) throws Transac } /** - * Any transaction object is configured according to the definition upfront. * Bind the holder for the first new transaction created. * * @see ArangoTransactionHolder