-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Otavio Santana <[email protected]>
- Loading branch information
1 parent
a907909
commit 153e1d2
Showing
12 changed files
with
35 additions
and
240 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
quarkus-jnosql-lite/src/main/java/org/jnosql/demoee/AuthorWithBooksRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package org.jnosql.demoee; | ||
|
||
import jakarta.data.page.Pageable; | ||
import jakarta.data.repository.PageableRepository; | ||
import jakarta.data.page.PageRequest; | ||
import jakarta.data.repository.BasicRepository; | ||
import jakarta.data.repository.Repository; | ||
|
||
import java.util.stream.Stream; | ||
|
||
@Repository | ||
public interface AuthorWithBooksRepository extends PageableRepository<AuthorWithBooks, String> { | ||
Stream<AuthorWithBooks> findByName(String name, Pageable pageable); | ||
public interface AuthorWithBooksRepository extends BasicRepository<AuthorWithBooks, String> { | ||
Stream<AuthorWithBooks> findByName(String name, PageRequest pageable); | ||
} |
7 changes: 3 additions & 4 deletions
7
quarkus-jnosql-lite/src/main/java/org/jnosql/demoee/BookWithAuthorRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
package org.jnosql.demoee; | ||
|
||
import jakarta.data.page.Pageable; | ||
import jakarta.data.page.PageRequest; | ||
import jakarta.data.repository.*; | ||
import jakarta.ws.rs.QueryParam; | ||
|
||
import java.util.stream.Stream; | ||
|
||
@Repository | ||
public interface BookWithAuthorRepository extends PageableRepository<BookWithAuthor, String> { | ||
public interface BookWithAuthorRepository extends BasicRepository<BookWithAuthor, String> { | ||
@Query("select * from BookWithAuthor where author._id = @authorId") | ||
Stream<BookWithAuthor> listBooksByAuthorId(@Param("authorId") String id); | ||
|
||
Stream<BookWithAuthor> findByTitleLike(String title, Pageable pageable); | ||
Stream<BookWithAuthor> findByTitleLike(String title, PageRequest pageable); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 0 additions & 89 deletions
89
quarkus-jnosql-lite/src/test/java/org/jnosql/demoee/AuthorResourceTest.java
This file was deleted.
Oops, something went wrong.
113 changes: 0 additions & 113 deletions
113
quarkus-jnosql-lite/src/test/java/org/jnosql/demoee/BookResourceTest.java
This file was deleted.
Oops, something went wrong.
5 changes: 3 additions & 2 deletions
5
quarkus-mongodb/src/main/java/org/jnosql/demoee/DogRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
package org.jnosql.demoee; | ||
|
||
import jakarta.data.repository.PageableRepository; | ||
|
||
import jakarta.data.repository.BasicRepository; | ||
import jakarta.data.repository.Repository; | ||
|
||
@Repository | ||
public interface DogRepository extends PageableRepository<Dog, String> { | ||
public interface DogRepository extends BasicRepository<Dog, String> { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
tomee-jnosql-sample/src/main/java/org/soujava/AnimalRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package org.soujava; | ||
|
||
import jakarta.data.repository.PageableRepository; | ||
import jakarta.data.repository.BasicRepository; | ||
import jakarta.data.repository.Repository; | ||
|
||
|
||
@Repository | ||
public interface AnimalRepository extends PageableRepository<Animal, String> { | ||
} | ||
public interface AnimalRepository extends BasicRepository<Animal, String> { | ||
} |
Oops, something went wrong.