Answer the question
In order to leave comments, you need to log in
How to put the generated query string in the DAO JPA repository?
Good afternoon, the project uses JPA repository.
There was a need to make atypical queries using the database functions in terms of geocoordinates.
I can't set up passing parameters to the query, even if I use @nativeQuery =true;
Always swears at the parameters that describe the geocoordinates (This is a formed String).
How can I give a preformed query string to the request? That is, I want to form the entire request, and then give it back.
UPD.
This design does not work
UPD 2
Understood, the question is not relevant
@Query(nativeQuery = true ,value = ":query")
public List<Myclass> qqqt(@Param("query")String query);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question