Spring Data JPA existsBy and Or condition

Viewed 292

For example I have this query:

select * from table where column1 = val and ((column2 is null and column3 = false) or
(column2 is not null and column3 = true))

How to create Spring data jpa for this using

existsByColumn1...(Integer val)
0 Answers
Related