Criteria crit=hbSession.createCriteria(S1.class)
.add(Restrictions.between("s1Docdt",startDate, endDate))
.add(Restrictions.eq("s1BranchCode",branchCode))
.add(Restrictions.eq("s1AccountingYear",year));
crit.addOrder(Order.asc("s1Docdt","s1Dcno","s1Tc");
我创建了一个会话并尝试添加限制并收到错误,因此任何人都可以帮助我。