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

Upgrade Jakarta Data to version M2 #467

Merged
merged 24 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
5db544e
chore: update jakarta data api
otaviojava Dec 21, 2023
03f58c3
chore: update api
otaviojava Dec 21, 2023
a64c73d
chore: update package name in graph
otaviojava Dec 21, 2023
2b77d08
docs: update changelog file including about the jakarta data version
otaviojava Dec 21, 2023
c83cdac
fixes test
otaviojava Dec 21, 2023
4116130
test: update repository test
otaviojava Dec 21, 2023
90be550
test: create test scenario to repository
otaviojava Dec 22, 2023
dc4e4b7
docs: create base column repository
otaviojava Dec 22, 2023
7355e4f
feat: create implementation of crudrepository
otaviojava Dec 22, 2023
834a7ec
feat: update repository bean to use DataRepository
otaviojava Dec 22, 2023
192c6b7
feat: update generics
otaviojava Dec 22, 2023
e071722
test: create insert and update scenario
otaviojava Dec 22, 2023
19f6eed
style: remove unecessary imports
otaviojava Dec 22, 2023
4d34b5f
feat: update repository document bean
otaviojava Dec 22, 2023
fb7a471
feat: fix document repository
otaviojava Dec 22, 2023
d88a411
feat: add supported repository scanner
otaviojava Dec 22, 2023
0fb1ff4
feat: update keyvaleu repository
otaviojava Dec 22, 2023
b9734fe
docs: create documentation
otaviojava Dec 22, 2023
a9e8037
feat: create implementation of keylvaye repository2
otaviojava Dec 22, 2023
ed9fcde
feat: create graph implementation
otaviojava Dec 22, 2023
e7a32f6
feat: create fixes at column bean
otaviojava Dec 22, 2023
36ac3ff
test: create test scenario to insert and update go graph
otaviojava Dec 22, 2023
9d1d055
style: remove not used improt at graph mapping
otaviojava Dec 22, 2023
0b1a72d
feat: remove imports
otaviojava Dec 22, 2023
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
5 changes: 5 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Version

== [Unreleased]

=== Changed

- Upgrade Jakarta Data to version 1.0.0-M2


== [1.0.4] - 2023-12-19

=== Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
requires org.eclipse.jnosql.communication.query;
requires jakarta.json.bind;
requires jakarta.json;
requires jakarta.data.api;
requires jakarta.data;

opens org.eclipse.jnosql.communication.column;

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



import jakarta.data.repository.Sort;
import jakarta.data.Sort;

import java.util.Arrays;
import java.util.Collections;
Expand Down Expand Up @@ -244,19 +244,19 @@ interface ColumnNameOrder extends ColumnQueryBuild {
}

/**
* The definition to either {@link jakarta.data.repository.Direction}
* The definition to either {@link jakarta.data.Direction}
*/
interface ColumnOrder {


/**
* Defines the order as {@link jakarta.data.repository.Direction#ASC}
* Defines the order as {@link jakarta.data.Direction#ASC}
* @return the {@link ColumnNameOrder} instance
*/
ColumnNameOrder asc();

/**
* Defines the order as {@link jakarta.data.repository.Direction#DESC}
* Defines the order as {@link jakarta.data.Direction#DESC}
* @return the {@link ColumnNameOrder} instance
*/
ColumnNameOrder desc();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@



import jakarta.data.repository.Sort;
import jakarta.data.Sort;

import java.util.Collections;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package org.eclipse.jnosql.communication.column;


import jakarta.data.repository.Sort;
import jakarta.data.Sort;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
package org.eclipse.jnosql.communication.column;

import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.column.ColumnDeleteQuery.ColumnDeleteQueryBuilder;

import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package org.eclipse.jnosql.communication.column;


import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.column.ColumnQuery.ColumnFrom;
import org.eclipse.jnosql.communication.column.ColumnQuery.ColumnLimit;
import org.eclipse.jnosql.communication.column.ColumnQuery.ColumnNameCondition;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package org.eclipse.jnosql.communication.column;


import jakarta.data.repository.Direction;
import jakarta.data.repository.Sort;
import jakarta.data.Direction;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.Params;
import org.eclipse.jnosql.communication.QueryException;
import org.eclipse.jnosql.communication.query.SelectQuery;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package org.eclipse.jnosql.communication.column;

import org.eclipse.jnosql.communication.Condition;
import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.TypeReference;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
package org.eclipse.jnosql.communication.column;

import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.Condition;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package org.eclipse.jnosql.communication.column;

import org.eclipse.jnosql.communication.Condition;
import jakarta.data.repository.Sort;
import jakarta.data.repository.Direction;
import jakarta.data.Sort;
import jakarta.data.Direction;
import org.eclipse.jnosql.communication.TypeReference;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import org.assertj.core.api.Assertions;
import org.eclipse.jnosql.communication.Condition;
import org.eclipse.jnosql.communication.QueryException;
import jakarta.data.repository.Sort;
import jakarta.data.repository.Direction;
import jakarta.data.Sort;
import jakarta.data.Direction;
import org.eclipse.jnosql.communication.TypeReference;
import org.eclipse.jnosql.communication.Value;
import org.junit.jupiter.params.ParameterizedTest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
requires org.eclipse.jnosql.communication.query;
requires jakarta.json.bind;
requires jakarta.json;
requires jakarta.data.api;
requires jakarta.data;
exports org.eclipse.jnosql.communication.document;
opens org.eclipse.jnosql.communication.document;
uses org.eclipse.jnosql.communication.document.DocumentConfiguration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package org.eclipse.jnosql.communication.document;


import jakarta.data.repository.Sort;
import jakarta.data.Sort;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package org.eclipse.jnosql.communication.document;


import jakarta.data.repository.Sort;
import jakarta.data.Sort;

import java.util.Collections;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package org.eclipse.jnosql.communication.document;


import jakarta.data.repository.Sort;
import jakarta.data.Sort;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package org.eclipse.jnosql.communication.document;


import jakarta.data.repository.Sort;
import jakarta.data.repository.Direction;
import jakarta.data.Sort;
import jakarta.data.Direction;
import org.eclipse.jnosql.communication.document.DocumentQuery.DocumentFrom;
import org.eclipse.jnosql.communication.document.DocumentQuery.DocumentLimit;
import org.eclipse.jnosql.communication.document.DocumentQuery.DocumentNameCondition;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@



import jakarta.data.repository.Sort;
import jakarta.data.Sort;

import java.util.Arrays;
import java.util.Collections;
Expand Down Expand Up @@ -446,14 +446,14 @@ interface DocumentWhere extends DocumentQueryBuild {
interface DocumentOrder {

/**
* Defines the order as {@link jakarta.data.repository.Direction#ASC}
* Defines the order as {@link jakarta.data.Direction#ASC}
*
* @return the {@link DocumentNameOrder} instance
*/
DocumentNameOrder asc();

/**
* Defines the order as {@link jakarta.data.repository.Direction#DESC}
* Defines the order as {@link jakarta.data.Direction#DESC}
*
* @return the {@link DocumentNameOrder} instance
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
package org.eclipse.jnosql.communication.document;


import jakarta.data.repository.Direction;
import jakarta.data.Direction;
import org.eclipse.jnosql.communication.Params;
import org.eclipse.jnosql.communication.QueryException;
import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.query.SelectQuery;
import org.eclipse.jnosql.communication.query.SelectQueryConverter;

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

package org.eclipse.jnosql.communication.document;

import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

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

import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.Condition;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import org.assertj.core.api.Assertions;
import org.eclipse.jnosql.communication.Condition;
import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.TypeReference;
import org.junit.jupiter.api.Test;
import org.mockito.ArgumentCaptor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package org.eclipse.jnosql.communication.document;

import org.eclipse.jnosql.communication.Condition;
import jakarta.data.repository.Sort;
import jakarta.data.repository.Direction;
import jakarta.data.Sort;
import jakarta.data.Direction;
import org.eclipse.jnosql.communication.TypeReference;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import org.assertj.core.api.Assertions;
import org.eclipse.jnosql.communication.Condition;
import org.eclipse.jnosql.communication.QueryException;
import jakarta.data.repository.Sort;
import jakarta.data.repository.Direction;
import jakarta.data.Sort;
import jakarta.data.Direction;
import org.eclipse.jnosql.communication.TypeReference;
import org.eclipse.jnosql.communication.Value;
import org.junit.jupiter.params.ParameterizedTest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
requires jakarta.json;
requires org.eclipse.jnosql.communication.core;
requires org.eclipse.jnosql.communication.query;
requires jakarta.data.api;
requires jakarta.data;
opens org.eclipse.jnosql.communication.keyvalue;
uses org.eclipse.jnosql.communication.keyvalue.KeyValueConfiguration;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
requires org.antlr.antlr4.runtime;
requires jakarta.json;
requires org.eclipse.jnosql.communication.core;
requires jakarta.data.api;
requires jakarta.data;

exports org.eclipse.jnosql.communication.query.method;
exports org.eclipse.jnosql.communication.query;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
package org.eclipse.jnosql.communication.query;


import jakarta.data.repository.Sort;
import jakarta.data.Sort;

import java.util.List;
import java.util.Objects;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

package org.eclipse.jnosql.communication.query;

import jakarta.data.repository.Sort;
import jakarta.data.Sort;

import java.util.List;
import java.util.Optional;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@

package org.eclipse.jnosql.communication.query;


import org.antlr.v4.runtime.tree.ParseTree;
import jakarta.data.repository.Sort;
import jakarta.data.repository.Direction;
import jakarta.data.Sort;
import jakarta.data.Direction;
import org.eclipse.jnosql.query.grammar.QueryParser;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
package org.eclipse.jnosql.communication.query.method;


import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.query.SelectQuery;
import org.eclipse.jnosql.communication.query.Where;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
package org.eclipse.jnosql.communication.query.method;

import org.antlr.v4.runtime.tree.ParseTree;
import jakarta.data.repository.Sort;
import jakarta.data.repository.Direction;
import jakarta.data.Sort;
import jakarta.data.Direction;
import org.eclipse.jnosql.communication.query.SelectQuery;
import org.eclipse.jnosql.query.grammar.method.MethodParser;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
package org.eclipse.jnosql.communication.query;

import org.eclipse.jnosql.communication.Condition;
import jakarta.data.repository.Sort;
import jakarta.data.Sort;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
package org.eclipse.jnosql.communication.query.method;

import org.eclipse.jnosql.communication.Condition;
import jakarta.data.repository.Sort;
import jakarta.data.repository.Direction;
import jakarta.data.Sort;
import jakarta.data.Direction;
import org.eclipse.jnosql.communication.query.BooleanQueryValue;
import org.eclipse.jnosql.communication.query.ConditionQueryValue;
import org.eclipse.jnosql.communication.query.ParamQueryValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
*/
package org.eclipse.jnosql.mapping.column;

import jakarta.data.repository.Direction;
import jakarta.data.repository.Sort;
import jakarta.data.Direction;
import jakarta.data.Sort;
import org.eclipse.jnosql.communication.column.ColumnQuery;
import org.eclipse.jnosql.mapping.core.Converters;
import jakarta.nosql.QueryMapper.MapperFrom;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package org.eclipse.jnosql.mapping.column;


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
Loading