is there any way to get the index of the element based on a given query in JPQL?
I saw this question but not got the right solution. I need a query to get the index.