最佳答案: Query q = getSession().createQuery( from T order by idx ); List li=q.list(); 一开始我用HIBERNATE自带的连接池,发先了查询结果不稳定现象,...更多关于hibernate 在order by后不执行where语句的问题>>
最佳答案: f1用升序, f2降序 ORDER BY f1, f2 DESC 也可以这样写,更清楚: ORDER BY f1 ASC, f2 DESC 如果都用降序,必须用两个desc ORDER BY f1 DESC, ...更多关于hibernate 在order by后不执行where语句的问题>>