Here\'s what I need to be able to do.
I have a List in java which I can convert to comma separate string of IDs like so \"3,4,5,6,1,2\"
I wonder if there\'s way
In hibernate u can do -
public String getResult(String sortOrder){
SQLQuery query = getSession().createSQLQuery("select t from ( select t.id t from t_test t order by t.id=:sortOrder").addScalar("name", Hibernate.STRING);
query.setString("sortOrder", sortOrder);
return (String)query.uniqueResult();
}