Skip to content

DATAJPA-1818 - Implements CrudRepository.delete(Iterable<ID> ids). #435

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 5 commits into from

Conversation

schauder
Copy link
Contributor

Merge right after DATACMNS-800

@@ -218,6 +218,16 @@ public void deleteAll(Iterable<? extends T> entities) {
}
}

@Override
public void deleteAllById(Iterable<? extends ID> ids) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also add a deleteAllByIdInBatch variant?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added deleteAllByIdInBatch.

It does not work with EclipseLink since their handling of IN queries seems still to be broken.

Renamed deleteInBatch to deleteAllInBatch to match the naming conventions of CrudRepository and the new method. The old variant is deprecated and delegates to the new one.

mp911de pushed a commit that referenced this pull request Nov 25, 2020
…ds).

Handling of IN-Queries in Eclipselink is still broken so this properly works only with Hibernate.

Original pull request: #435.
mp911de pushed a commit that referenced this pull request Nov 25, 2020
mp911de added a commit that referenced this pull request Nov 25, 2020
Reorder methods. Fix Javadoc.

Original pull request: #435.
@mp911de
Copy link
Member

mp911de commented Nov 25, 2020

That's merged and polished now.

@mp911de mp911de closed this Nov 25, 2020
@mp911de mp911de deleted the issue/DATAJPA-1818 branch November 25, 2020 13:36
mp911de added a commit that referenced this pull request Nov 25, 2020
Add missing Transactional annotations.

Original pull request: #435.
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.

2 participants