How to pass parameters in a native query?

Repository method is using native query to retrieves records. Now I would like to pass parameters carRepository.retrieveCars (Long vinNo, Long serialNo) and use them in a query. I assume that I will need something as a prepared statements. However Im not sure how to implement that.
For More Information Please Refer:


You May Also Like to Read: