DetachedCriteria dc = DetachedCriteria.forClass(classT, "p");
dc.add(Restrictions.eq("purePeptide", purePeptide));
dc.add(Restrictions.eq("project.id", projectId));
dc.addOrder(Order.asc("peptide"));
浠g爜浜岋細
DetachedCriteria dc = DetachedCriteria.forClass(classT, "p");
dc.add(Restrictions.eq("p.purePeptide", purePeptide));
dc.add(Restrictions.eq("project.id", projectId));
dc.addOrder(Order.asc("peptide"));
涓ゆ浠g爜鍞竴鐨勫尯鍒氨鏄浜屽彞鏄嬌鐢?purePeptide"榪樻槸"p.purePeptide"銆?br>浠g爜涓浜х敓鐨剆ql璇彞錛?br>select this_.purePeptide as y1_, this_.peptide as y2_ from SequestPeptide this_ where y1_ = 'NASILLEELDLEK' and this_.project_id=1 order by y2_ asc
榪愯浼氭姤Unknown column name:Y1_
浠g爜浜屼駭鐢熺殑姝g‘鐨剆ql璇彞錛?br>select this_.purePeptide as y1_, this_.peptide as y2_ from SequestPeptide this_ where this_.purePeptide='NASILLEELDLEK' and this_.project_id=1 order by y2_ asc

]]>