write custom query in springboot