Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add repository search for nullable or empty properties. #1946

Conversation

sothawo
Copy link
Collaborator

@sothawo sothawo commented Sep 25, 2021

Given an entity Product with a property name now the following queries are supported (with any of the possible return types):

SearchHits<Product> findByNameExists();
SearchHits<Product> findByNameIsNull();
SearchHits<Product> findByNameIsNotNull();
SearchHits<Product> findByNameEmpty();
SearchHits<Product> findByNameNotEmpty();

Closes #1909

@sothawo sothawo merged commit 175e7b5 into spring-projects:main Sep 25, 2021
@sothawo sothawo deleted the #1909-add-exists-an-notempty-to-query-criteria branch September 25, 2021 16:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EXISTS, NOT_EMPTY query filters for the repository
1 participant