spring-projects / spring-data-jpa

Simplifies the development of creating a JPA-based data access layer.
https://spring.io/projects/spring-data-jpa/
Apache License 2.0
3.02k stars 1.42k forks source link

Add a flag(Boolean) variable for a field `IS NULL` or `IS NOT NULL` #3640

Closed codingmickey closed 3 weeks ago

codingmickey commented 1 month ago

In the JPA Query methods we should be able to add a boolean variable to any of the fields which can be IS NULL or IS NOT NULL based on that boolean that is being passed

Using custom queries is currently possible, but this would be a sweet change!

mp911de commented 1 month ago

How do you mean? Something like findByFooIsNull(true)/findByFooIsNull(false)?

spring-projects-issues commented 1 month ago

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

spring-projects-issues commented 3 weeks ago

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.