When I extend CrudRepository interface, I have exists(ID) method in my subinteface. I can write findBy<property> methods.
Is it possible somehow to write existBy<property> method that will return boolean. Or to annotate it with @Query(jpa query) so it will return boolean.
I know that I can do select count(*) and return long, but then I will have to do !=0 check in my service layer.