for fetching sorted value from db using hibernate, I use this NamedQuery:
@NamedQuery(
name = "searchnearestdesc",
query = "select t FROM Result t WHERE t.indec=:e"
+ "t.var<=:f ORDER BY var DESC"
)
But, I get exception,
what is my error?
You need a AND between your clauses, also don’t forget the trailing space when concatening strings 😉