Skip to content

Update projects database #331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Jul 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
35c04ad
feat: generate contact type
otaviojava Jul 24, 2025
790bf71
feat: include license header
otaviojava Jul 24, 2025
01d597b
test: generate orale nosql template
otaviojava Jul 24, 2025
b8a7a51
test: generate contact repository
otaviojava Jul 24, 2025
f3b51a4
test: include test scenario to contact repository
otaviojava Jul 24, 2025
a1ef37c
style: update header on contact repository
otaviojava Jul 24, 2025
c215d48
chore: update test container to version 1.23.3
otaviojava Jul 26, 2025
23d81e8
chore: udpate solr to version 9.9.0
otaviojava Jul 26, 2025
198a349
docs: update update description
otaviojava Jul 26, 2025
9341b4e
docs: include jedis description
otaviojava Jul 26, 2025
f581a90
chore: update jedis driver to version 6.0.0
otaviojava Jul 26, 2025
48e9445
docs: include change log to orientdb driver
otaviojava Jul 26, 2025
1ad89fb
chore: update orientdb driver to 3..4.42
otaviojava Jul 26, 2025
779ab1a
docs: update description to mongodb driver change
otaviojava Jul 26, 2025
779d7f9
chore: update driver to version 5.5.1
otaviojava Jul 26, 2025
679764c
docs: update description of initispan
otaviojava Jul 26, 2025
4d41026
chore: update infinispan to version 15.2.5
otaviojava Jul 26, 2025
154d4cb
docs: include couchbase driver changelong
otaviojava Jul 26, 2025
814bd50
chore: update coubase client to version 3.8.3
otaviojava Jul 26, 2025
db7cf50
docs: update changelong on Arangodb
otaviojava Jul 26, 2025
4ce0676
chore: update arangodb driver version
otaviojava Jul 26, 2025
ad64b8d
style: remove extra space at arangodb maven driver
otaviojava Jul 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Version
=== Changes

- Changes on the document entities persistence operations at the Eclipse JNoSQL DynamoDB Database

- Update Apache solr driver to 9.9.0
- Update Jedis to version 6.0.0
- Update OrientDB driver to 3.2.42
- Update MongoDB driver to 5.5.1
- Update Infinispan driver to 15.2.5.Final
- Update Couchbase driver to 3.8.3
- Update ArangoDB driver to 7.21.0

== [1.1.8] - 2025-05-21

Expand Down
3 changes: 1 addition & 2 deletions jnosql-arangodb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
<description>The Eclipse JNoSQL layer to ArangoDB</description>

<properties>
<arango.driver>7.17.0</arango.driver>

<arango.driver>7.21.0</arango.driver>
</properties>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion jnosql-couchbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<dependency>
<groupId>com.couchbase.client</groupId>
<artifactId>java-client</artifactId>
<version>3.8.1</version>
<version>3.8.3</version>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
Expand Down
2 changes: 1 addition & 1 deletion jnosql-infinispan/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<description>The Eclipse JNoSQL layer implementation for Infinispan</description>

<properties>
<infinispan.version>15.1.1.Final</infinispan.version>
<infinispan.version>15.2.5.Final</infinispan.version>

</properties>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion jnosql-mongodb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<description>The Eclipse JNoSQL layer to MongoDB</description>

<properties>
<monbodb.driver>5.2.1</monbodb.driver>
<monbodb.driver>5.5.1</monbodb.driver>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright (c) 2025 Contributors to the Eclipse Foundation
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php.
*
* You may elect to redistribute this code under either of these licenses.
*
* Contributors:
*
* Otavio Santana
*/
package org.eclipse.jnosql.databases.oracle.integration;

import jakarta.nosql.Column;
import jakarta.nosql.Entity;
import jakarta.nosql.Id;
import org.eclipse.jnosql.databases.oracle.communication.ContactType;

@Entity
public record Contact(@Id String id, @Column String name, @Column ContactType type) {


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Copyright (c) 2025 Contributors to the Eclipse Foundation
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php.
*
* You may elect to redistribute this code under either of these licenses.
*
* Contributors:
*
* Otavio Santana
*/
package org.eclipse.jnosql.databases.oracle.integration;

import jakarta.data.repository.BasicRepository;
import jakarta.data.repository.Param;
import jakarta.data.repository.Query;
import jakarta.data.repository.Repository;
import org.eclipse.jnosql.databases.oracle.communication.ContactType;

import java.util.List;

@Repository
public interface ContactRepository extends BasicRepository<Contact, String> {

@Query("where type = :type")
List<Contact> findByType(@Param("type") ContactType type);
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import jakarta.inject.Inject;
import org.assertj.core.api.SoftAssertions;
import org.eclipse.jnosql.databases.oracle.communication.ContactType;
import org.eclipse.jnosql.databases.oracle.communication.Database;
import org.eclipse.jnosql.databases.oracle.communication.OracleNoSQLConfigurations;
import org.eclipse.jnosql.databases.oracle.mapping.OracleNoSQLTemplate;
Expand All @@ -32,7 +33,9 @@
import org.jboss.weld.junit5.auto.EnableAutoWeld;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.params.ParameterizedTest;

import java.util.List;
import java.util.Optional;

import static java.util.UUID.randomUUID;
Expand All @@ -54,6 +57,9 @@ class OracleNoSQLTemplateIntegrationTest {
@Inject
private OracleNoSQLTemplate template;

@Inject
private ContactRepository contactRepository;

static {
System.setProperty(OracleNoSQLConfigurations.HOST.get(), Database.INSTANCE.host());
System.setProperty(MappingConfigurations.DOCUMENT_DATABASE.get(), "library");
Expand Down Expand Up @@ -136,6 +142,36 @@ void shouldUpdateNullValues(){
softly.assertThat(optional).get().extracting(Magazine::edition).isEqualTo(2);
});
}

@ParameterizedTest
@org.junit.jupiter.params.provider.EnumSource(ContactType.class)
void shouldFindByType(ContactType type){
var contact = new Contact(randomUUID().toString(), "Otavio Santana", type);
template.insert(contact);

List<Contact> entities = template.select(Contact.class).where("type").eq(type).result();

SoftAssertions.assertSoftly(softly -> {
softly.assertThat(entities).isNotNull();
softly.assertThat(entities).allMatch(e -> e.type().equals(type));
});

}

@ParameterizedTest
@org.junit.jupiter.params.provider.EnumSource(ContactType.class)
void shouldFindByTypeUsingRepository(ContactType type){
var contact = new Contact(randomUUID().toString(), "Otavio Santana", type);
contactRepository.save(contact);

List<Contact> entities = contactRepository.findByType(type);

SoftAssertions.assertSoftly(softly -> {
softly.assertThat(entities).isNotNull();
softly.assertThat(entities).allMatch(e -> e.type().equals(type));
});

}



Expand Down
2 changes: 1 addition & 1 deletion jnosql-orientdb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-graphdb</artifactId>
<version>3.2.39</version>
<version>3.2.42</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
Expand Down
2 changes: 1 addition & 1 deletion jnosql-redis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>5.2.0</version>
<version>6.0.0</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
Expand Down
2 changes: 1 addition & 1 deletion jnosql-solr/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-solrj</artifactId>
<version>9.7.0</version>
<version>9.9.0</version>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</scm>

<properties>
<testcontainers.version>1.21.0</testcontainers.version>
<testcontainers.version>1.21.3</testcontainers.version>
<jnosql.test.integration>false</jnosql.test.integration>
<pmd.url>https://raw.githubusercontent.com/eclipse/jnosql-databases/refs/heads/main/pmd/pmd-rules.xml</pmd.url>
</properties>
Expand Down