I'm using the seam generated list class derived from EntityQuery.
I have added a method to it like
forCategory(int categoryId) to retrieve list of subcategories for a given category id and setting ejbQl to an appropriate query.
I can't reuse the object to pass a different category id to get different lists. I used refresh to clear the state. But it looks like refresh does not nullify parsedEjbql variable therefore it is giving the same list even though you set a different query.
Did anyone come across this issue?
No, refresh doesn't clear the parsedEjbql, but it does clear the resultList, singleResult and dataModel, meaning that if you subsequently request one of these, then, if any parameters are dirty, then the query will be run again. It doesn't check the ejbql though, so raise an issue in JIRA and we can take a look.