How to convert a Spring JPA Query Result to boolean
I’m always forgetting how to do that… so here is a short reminder for that 😉 If you want to query and convert the result to boolean, then you have to either convert to true or false as a result:
I’m always forgetting how to do that… so here is a short reminder for that 😉 If you want to query and convert the result to boolean, then you have to either convert to true or false as a result: