hql练习二 ,老是报语法错误,可是我怎么也找不到错误,呜呜……
String hql = "select new com.imooc.model.Order(o.customer.name,o.tradeDate,o.status,o.amount) "
+ " from Order as o "
+ " where o.tradeDate between '2015-05-01' and '2015-06-01' "
+ " and o.status='已发货' or o.status='已付款' "
+ " and o.amount > 1000 "
+ " order by o.status asc,o.tradeDate desc,o.amount desc";