Skip to content

Introduce List-based repository interfaces #2538

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

Closed
wants to merge 2 commits into from

Conversation

schauder
Copy link
Contributor

This introduces the interfaces

  • ListCrudRepository
  • ListQuerydslPredicateExecutor
  • ListQueryByExampleExecutor

They return List instead of Iterable when returning multiple entities.
They can be used in the same way the interfaces without the List prefix can be used.

Closes #2535.

This introduces the interfaces
* `ListCrudRepository`
* `ListQuerydslPredicateExecutor`
* `ListQueryByExampleExecutor`

They return `List` instead of `Iterable` when returning multiple entities.
They can be used in the same way the interfaces without the `List` prefix can be used.

Closes #2535.
@schauder schauder linked an issue Jan 24, 2022 that may be closed by this pull request
@mp911de
Copy link
Member

mp911de commented Jan 24, 2022

How do we want to go about PagingAndSortingRepository? Do we want to add the List-based variant after decoupling PagingAndSortingRepository from CrudRepository?

@schauder
Copy link
Contributor Author

That's my plan.

mp911de pushed a commit that referenced this pull request Feb 11, 2022
This introduces the interfaces
* `ListCrudRepository`
* `ListQuerydslPredicateExecutor`
* `ListQueryByExampleExecutor`

They return `List` instead of `Iterable` when returning multiple entities.
They can be used in the same way the interfaces without the `List` prefix can be used.

Closes #2535.
Original pull request: #2538.
mp911de added a commit that referenced this pull request Feb 11, 2022
Let List… interface variants extend their base parent so that List-based variants participate in the type hierarchy.

See #2538
Original pull request: #2538.
@mp911de mp911de changed the title Introduce List based repository interfaces. Introduce List-based repository interfaces Feb 11, 2022
@mp911de mp911de added this to the 3.0 M2 (2022.0.0) milestone Feb 11, 2022
@mp911de mp911de closed this Feb 11, 2022
@mp911de mp911de deleted the issue/2535-list-interfaces branch February 11, 2022 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create additional List-based repository interfaces
2 participants