Hi all,
I am new to Hibernate, as well as this list, so sorry if this question is basic or unclear...
I am trying to add a Restriction to a query so that given a Collection of ids, it will return results with those ids IN THE SAME ORDER.
I've used the "InExpression(String propertyName, Collection values)" with the following line of code:
oResult = oResult.add(Restrictions.in("vID", (Collection) oFilter.getValue()));
But this does not return the results in the same order as they were in the Collection.
Is there a way to maintain the order? Or is there a better way to do this?
Thanks so much in advance,
J
|