Skip to content

Commit 2647258

Browse files
authored
Merge pull request #331 from eclipse-jnosql/update-projects-database
Update projects database
2 parents 6937de8 + ad64b8d commit 2647258

File tree

12 files changed

+107
-10
lines changed

12 files changed

+107
-10
lines changed

CHANGELOG.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Version
1515
=== Changes
1616

1717
- Changes on the document entities persistence operations at the Eclipse JNoSQL DynamoDB Database
18-
18+
- Update Apache solr driver to 9.9.0
19+
- Update Jedis to version 6.0.0
20+
- Update OrientDB driver to 3.2.42
21+
- Update MongoDB driver to 5.5.1
22+
- Update Infinispan driver to 15.2.5.Final
23+
- Update Couchbase driver to 3.8.3
24+
- Update ArangoDB driver to 7.21.0
1925

2026
== [1.1.8] - 2025-05-21
2127

jnosql-arangodb/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
<description>The Eclipse JNoSQL layer to ArangoDB</description>
2929

3030
<properties>
31-
<arango.driver>7.17.0</arango.driver>
32-
31+
<arango.driver>7.21.0</arango.driver>
3332
</properties>
3433

3534
<dependencies>

jnosql-couchbase/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<dependency>
4949
<groupId>com.couchbase.client</groupId>
5050
<artifactId>java-client</artifactId>
51-
<version>3.8.1</version>
51+
<version>3.8.3</version>
5252
</dependency>
5353
<dependency>
5454
<groupId>org.testcontainers</groupId>

jnosql-infinispan/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<description>The Eclipse JNoSQL layer implementation for Infinispan</description>
2727

2828
<properties>
29-
<infinispan.version>15.1.1.Final</infinispan.version>
29+
<infinispan.version>15.2.5.Final</infinispan.version>
3030

3131
</properties>
3232
<dependencies>

jnosql-mongodb/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<description>The Eclipse JNoSQL layer to MongoDB</description>
2929

3030
<properties>
31-
<monbodb.driver>5.2.1</monbodb.driver>
31+
<monbodb.driver>5.5.1</monbodb.driver>
3232
</properties>
3333
<dependencies>
3434
<dependency>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2025 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+
*/
15+
package org.eclipse.jnosql.databases.oracle.integration;
16+
17+
import jakarta.nosql.Column;
18+
import jakarta.nosql.Entity;
19+
import jakarta.nosql.Id;
20+
import org.eclipse.jnosql.databases.oracle.communication.ContactType;
21+
22+
@Entity
23+
public record Contact(@Id String id, @Column String name, @Column ContactType type) {
24+
25+
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2025 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+
*/
15+
package org.eclipse.jnosql.databases.oracle.integration;
16+
17+
import jakarta.data.repository.BasicRepository;
18+
import jakarta.data.repository.Param;
19+
import jakarta.data.repository.Query;
20+
import jakarta.data.repository.Repository;
21+
import org.eclipse.jnosql.databases.oracle.communication.ContactType;
22+
23+
import java.util.List;
24+
25+
@Repository
26+
public interface ContactRepository extends BasicRepository<Contact, String> {
27+
28+
@Query("where type = :type")
29+
List<Contact> findByType(@Param("type") ContactType type);
30+
}

jnosql-oracle-nosql/src/test/java/org/eclipse/jnosql/databases/oracle/integration/OracleNoSQLTemplateIntegrationTest.java

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import jakarta.inject.Inject;
1919
import org.assertj.core.api.SoftAssertions;
20+
import org.eclipse.jnosql.databases.oracle.communication.ContactType;
2021
import org.eclipse.jnosql.databases.oracle.communication.Database;
2122
import org.eclipse.jnosql.databases.oracle.communication.OracleNoSQLConfigurations;
2223
import org.eclipse.jnosql.databases.oracle.mapping.OracleNoSQLTemplate;
@@ -32,7 +33,9 @@
3233
import org.jboss.weld.junit5.auto.EnableAutoWeld;
3334
import org.junit.jupiter.api.Test;
3435
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
36+
import org.junit.jupiter.params.ParameterizedTest;
3537

38+
import java.util.List;
3639
import java.util.Optional;
3740

3841
import static java.util.UUID.randomUUID;
@@ -54,6 +57,9 @@ class OracleNoSQLTemplateIntegrationTest {
5457
@Inject
5558
private OracleNoSQLTemplate template;
5659

60+
@Inject
61+
private ContactRepository contactRepository;
62+
5763
static {
5864
System.setProperty(OracleNoSQLConfigurations.HOST.get(), Database.INSTANCE.host());
5965
System.setProperty(MappingConfigurations.DOCUMENT_DATABASE.get(), "library");
@@ -136,6 +142,36 @@ void shouldUpdateNullValues(){
136142
softly.assertThat(optional).get().extracting(Magazine::edition).isEqualTo(2);
137143
});
138144
}
145+
146+
@ParameterizedTest
147+
@org.junit.jupiter.params.provider.EnumSource(ContactType.class)
148+
void shouldFindByType(ContactType type){
149+
var contact = new Contact(randomUUID().toString(), "Otavio Santana", type);
150+
template.insert(contact);
151+
152+
List<Contact> entities = template.select(Contact.class).where("type").eq(type).result();
153+
154+
SoftAssertions.assertSoftly(softly -> {
155+
softly.assertThat(entities).isNotNull();
156+
softly.assertThat(entities).allMatch(e -> e.type().equals(type));
157+
});
158+
159+
}
160+
161+
@ParameterizedTest
162+
@org.junit.jupiter.params.provider.EnumSource(ContactType.class)
163+
void shouldFindByTypeUsingRepository(ContactType type){
164+
var contact = new Contact(randomUUID().toString(), "Otavio Santana", type);
165+
contactRepository.save(contact);
166+
167+
List<Contact> entities = contactRepository.findByType(type);
168+
169+
SoftAssertions.assertSoftly(softly -> {
170+
softly.assertThat(entities).isNotNull();
171+
softly.assertThat(entities).allMatch(e -> e.type().equals(type));
172+
});
173+
174+
}
139175

140176

141177

jnosql-orientdb/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<dependency>
3535
<groupId>com.orientechnologies</groupId>
3636
<artifactId>orientdb-graphdb</artifactId>
37-
<version>3.2.39</version>
37+
<version>3.2.42</version>
3838
</dependency>
3939
<dependency>
4040
<groupId>${project.groupId}</groupId>

jnosql-redis/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<dependency>
3838
<groupId>redis.clients</groupId>
3939
<artifactId>jedis</artifactId>
40-
<version>5.2.0</version>
40+
<version>6.0.0</version>
4141
</dependency>
4242
<dependency>
4343
<groupId>${project.groupId}</groupId>

0 commit comments

Comments
 (0)