Spring data jpa native query example with parameters. But they also have a few downsides you should avoid.