2525import com .arangodb .springframework .core .ArangoOperations ;
2626import com .arangodb .springframework .core .mapping .ArangoMappingContext ;
2727import com .arangodb .springframework .core .util .AqlUtils ;
28+ import com .arangodb .springframework .repository .query .QueryTransactionBridge ;
2829import org .slf4j .Logger ;
2930import org .slf4j .LoggerFactory ;
3031import org .springframework .data .domain .*;
@@ -50,17 +51,20 @@ public class SimpleArangoRepository<T, ID> implements ArangoRepository<T, ID> {
5051 private final ArangoMappingContext mappingContext ;
5152 private final ArangoExampleConverter exampleConverter ;
5253 private final Class <T > domainClass ;
54+ private final QueryTransactionBridge transactionBridge ;
5355
5456 /**
5557 *
56- * @param arangoOperations The template used to execute much of the
57- * functionality of this class
58- * @param domainClass the class type of this repository
58+ * @param arangoOperations The template used to execute much of the
59+ * functionality of this class
60+ * @param domainClass the class type of this repository
61+ * @param transactionBridge the optional transaction bridge
5962 */
60- public SimpleArangoRepository (final ArangoOperations arangoOperations , final Class <T > domainClass ) {
63+ public SimpleArangoRepository (final ArangoOperations arangoOperations , final Class <T > domainClass , final QueryTransactionBridge transactionBridge ) {
6164 super ();
6265 this .arangoOperations = arangoOperations ;
6366 this .domainClass = domainClass ;
67+ this .transactionBridge = transactionBridge ;
6468 mappingContext = (ArangoMappingContext ) arangoOperations .getConverter ().getMappingContext ();
6569 exampleConverter = new ArangoExampleConverter (mappingContext , arangoOperations .getResolverFactory ());
6670 }
0 commit comments