Skip to content
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

Update API to Jakarta Data #259

Merged
merged 5 commits into from
Dec 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Version

== [Unreleased]

=== Changed

- Update Jakarta Data to version 1.0.0-M3

== [1.0.4] - 2023-12-19

=== Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
*/
package org.eclipse.jnosql.databases.arangodb.communication;

import jakarta.data.repository.Direction;
import jakarta.data.repository.Sort;
import jakarta.data.Direction;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.TypeReference;
import org.eclipse.jnosql.communication.document.Document;
import org.eclipse.jnosql.communication.document.DocumentCondition;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import static java.util.Collections.emptyMap;
import static org.eclipse.jnosql.mapping.core.repository.DynamicReturn.toSingleResult;

class ArangoDBDocumentRepositoryProxy<T> extends AbstractDocumentRepositoryProxy<T> {
class ArangoDBDocumentRepositoryProxy<T, K> extends AbstractDocumentRepositoryProxy<T, K> {

private final Class<T> typeClass;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
package org.eclipse.jnosql.databases.cassandra.communication;

import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.column.ColumnCondition;
import org.eclipse.jnosql.communication.column.ColumnQuery;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import com.datastax.oss.driver.api.querybuilder.select.Select;
import com.datastax.oss.driver.api.querybuilder.term.Term;
import com.datastax.oss.protocol.internal.ProtocolConstants;
import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.CommunicationException;
import org.eclipse.jnosql.communication.Value;
import org.eclipse.jnosql.communication.column.Column;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
package org.eclipse.jnosql.databases.couchbase.communication;

import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.document.DocumentCondition;
import org.eclipse.jnosql.communication.document.DocumentDeleteQuery;
import org.eclipse.jnosql.communication.document.DocumentQuery;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package org.eclipse.jnosql.databases.couchbase.communication;

import com.couchbase.client.java.json.JsonObject;
import jakarta.data.repository.Direction;
import jakarta.data.Direction;
import org.eclipse.jnosql.communication.TypeReference;
import org.eclipse.jnosql.communication.document.Document;
import org.eclipse.jnosql.communication.document.DocumentCondition;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import static org.eclipse.jnosql.mapping.core.repository.DynamicReturn.toSingleResult;


class CouchbaseDocumentRepositoryProxy<T>extends AbstractDocumentRepositoryProxy<T> {
class CouchbaseDocumentRepositoryProxy<T, K>extends AbstractDocumentRepositoryProxy<T, K> {

private final Class<T> typeClass;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
package org.eclipse.jnosql.databases.couchdb.communication;

import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.document.DocumentCondition;
import org.eclipse.jnosql.communication.document.DocumentQuery;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
package org.eclipse.jnosql.databases.couchdb.communication;

import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.document.DocumentCondition;
import org.eclipse.jnosql.communication.document.DocumentDeleteQuery;
import org.eclipse.jnosql.communication.document.DocumentQuery;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*/
package org.eclipse.jnosql.databases.couchdb.communication;

import jakarta.data.repository.Direction;
import jakarta.data.repository.Sort;
import jakarta.data.Direction;
import jakarta.data.Sort;
import jakarta.json.Json;
import jakarta.json.JsonArray;
import jakarta.json.JsonArrayBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
package org.eclipse.jnosql.databases.elasticsearch.communication;

import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.document.DocumentCondition;
import org.eclipse.jnosql.communication.document.DocumentDeleteQuery;
import org.eclipse.jnosql.communication.document.DocumentQuery;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import static org.eclipse.jnosql.mapping.core.repository.DynamicReturn.toSingleResult;

class HazelcastRepositoryProxy<T> extends AbstractKeyValueRepositoryProxy<T> {
class HazelcastRepositoryProxy<T, K> extends AbstractKeyValueRepositoryProxy<T, K> {

private final HazelcastTemplate template;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import com.mongodb.client.model.Projections;
import com.mongodb.client.model.Sorts;
import com.mongodb.client.result.DeleteResult;
import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.bson.BsonDocument;
import org.bson.Document;
import org.bson.conversions.Bson;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
package org.eclipse.jnosql.databases.orientdb.communication;

import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.document.DocumentCondition;
import org.eclipse.jnosql.communication.document.DocumentDeleteQuery;
import org.eclipse.jnosql.communication.document.DocumentQuery;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@


import com.orientechnologies.orient.core.id.ORecordId;
import jakarta.data.repository.Direction;
import jakarta.data.repository.Sort;
import jakarta.data.Direction;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.TypeReference;
import org.eclipse.jnosql.communication.document.Document;
import org.eclipse.jnosql.communication.document.DocumentCondition;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import static org.eclipse.jnosql.mapping.core.repository.DynamicReturn.toSingleResult;


class OrientDBDocumentRepositoryProxy<T> extends AbstractDocumentRepositoryProxy<T> {
class OrientDBDocumentRepositoryProxy<T, K> extends AbstractDocumentRepositoryProxy<T, K> {

private final Class<T> typeClass;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

package org.eclipse.jnosql.databases.ravendb.communication;

import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import net.ravendb.client.documents.queries.Query;
import net.ravendb.client.documents.session.IDocumentQuery;
import net.ravendb.client.documents.session.IDocumentSession;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
package org.eclipse.jnosql.databases.ravendb.communication;

import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.document.DocumentCondition;
import org.eclipse.jnosql.communication.document.DocumentDeleteQuery;
import org.eclipse.jnosql.communication.document.DocumentQuery;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

package org.eclipse.jnosql.databases.solr.communication;

import jakarta.data.repository.Direction;
import jakarta.data.Direction;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrQuery.SortClause;
import org.apache.solr.client.solrj.SolrServerException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

import static org.eclipse.jnosql.mapping.core.repository.DynamicReturn.toSingleResult;

class SolrRepositoryProxy<T> extends AbstractDocumentRepositoryProxy<T> {
class SolrRepositoryProxy<T, K> extends AbstractDocumentRepositoryProxy<T, K> {

private final Class<T> typeClass;

Expand Down