You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to read the SQL query from the properties.yml file but am getting the error below:
No argument for the named parameter ': id'
Repository:
Entity findById(String id);
Not Working:
@Query(value = "${myapp.query}")
Entity findById(String id);
Working:
@Query("SELECT e from Entity e WHERE e.id = :id")
Entity findById(String id);
Info:
micronaut version: 4.5.1
postgres version: 42.7.4
Is there any specific format in which I must write a query in the properties file? Any help is appreciated. T.I.A
Beta Was this translation helpful? Give feedback.
All reactions