Skip to content

Commit 21bb9ad

Browse files
committed
adds support to raven
1 parent b7bdd6e commit 21bb9ad

File tree

4 files changed

+52
-0
lines changed

4 files changed

+52
-0
lines changed

ravendb-driver/pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,26 @@
4545
<artifactId>ravendb-client</artifactId>
4646
<version>4.0.0-rc1</version>
4747
</dependency>
48+
<dependency>
49+
<groupId>jakarta.nosql.tck.communication.driver</groupId>
50+
<artifactId>driver-tck-document</artifactId>
51+
<version>${jakarta.nosql.version}</version>
52+
<scope>test</scope>
53+
</dependency>
4854
</dependencies>
55+
56+
<build>
57+
<plugins>
58+
<plugin>
59+
<groupId>org.apache.maven.plugins</groupId>
60+
<artifactId>maven-surefire-plugin</artifactId>
61+
<version>${maven.surefire.plugin.version}</version>
62+
<configuration>
63+
<dependenciesToScan>
64+
<dependency>jakarta.nosql.tck.communication.driver:driver-tck-document</dependency>
65+
</dependenciesToScan>
66+
</configuration>
67+
</plugin>
68+
</plugins>
69+
</build>
4970
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright (c) 2020 Otávio Santana and others
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+
*/
15+
package org.eclipse.jnosql.diana.ravendb.document;
16+
17+
import jakarta.nosql.document.DocumentCollectionManager;
18+
import jakarta.nosql.tck.communication.driver.document.DocumentCollectionManagerSupplier;
19+
20+
public class RavenDBDocumentCollectionManagerSupplier implements DocumentCollectionManagerSupplier {
21+
22+
@Override
23+
public DocumentCollectionManager get() {
24+
return DocumentConfigurationUtils.INSTANCE.get().get("database");
25+
}
26+
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.eclipse.jnosql.diana.ravendb.document.RavenDBDocumentCollectionManagerSupplier
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
query.1=insert person {"_id": 1, "name": "Diana"}
2+
query.2=insert person {"_id": 2, "name": "Artemis"}
3+
id.name=_id

0 commit comments

Comments
 (0)