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 .*;
@@ -48,17 +49,20 @@ public class SimpleArangoRepository<T, ID> implements ArangoRepository<T, ID> {
4849 private final ArangoMappingContext mappingContext ;
4950 private final ArangoExampleConverter exampleConverter ;
5051 private final Class <T > domainClass ;
52+ private final QueryTransactionBridge transactionBridge ;
5153
5254 /**
5355 *
54- * @param arangoOperations The template used to execute much of the
55- * functionality of this class
56- * @param domainClass the class type of this repository
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
59+ * @param transactionBridge the optional transaction bridge
5760 */
58- public SimpleArangoRepository (final ArangoOperations arangoOperations , final Class <T > domainClass ) {
61+ public SimpleArangoRepository (final ArangoOperations arangoOperations , final Class <T > domainClass , final QueryTransactionBridge transactionBridge ) {
5962 super ();
6063 this .arangoOperations = arangoOperations ;
6164 this .domainClass = domainClass ;
65+ this .transactionBridge = transactionBridge ;
6266 mappingContext = (ArangoMappingContext ) arangoOperations .getConverter ().getMappingContext ();
6367 exampleConverter = new ArangoExampleConverter (mappingContext , arangoOperations .getResolverFactory ());
6468 }
0 commit comments