我想像这样执行我的HQL查询:QueryqueryPayment=sixSession.createQuery("fromPaymentwherevcode=:p_Vcodeor(Installment_Vcode=:installmentVcodeandpayment_date>:pdate)orderbyvcode."+order+"desc").setParameter("p_Vcode",p_Vcode).setParameter("installmentVcode",installmentVcode).setParameter("pdate",pdate);但它不识别+ord
我想像这样执行我的HQL查询:QueryqueryPayment=sixSession.createQuery("fromPaymentwherevcode=:p_Vcodeor(Installment_Vcode=:installmentVcodeandpayment_date>:pdate)orderbyvcode."+order+"desc").setParameter("p_Vcode",p_Vcode).setParameter("installmentVcode",installmentVcode).setParameter("pdate",pdate);但它不识别+ord