Convert a Spring Data JPA repository method to a prepared statement
I’m trying to use a Java library that exports data to Excel. However, the only way to provide the data is in the form of a PreparedStatement
. In my Spring Boot app, all the data access is via JPQL, typically in the form of a Spring Data repository method such as the following: