String sql="select new com.gehua.InfoSystem.pojo.CPayRecord_CFix(cp.id,cp.yhId,cp.beizhu,cp.PTimestamp,cp.PZhuantai,cp.macaddress,cp.churen,cp.chushi,cf.azCmMac) from CPayRecord as cp ,CFix as cf where cp.yhId=cf.yhId";
??类CPayRecord_CFix
public class CPayRecord_CFix { private Integer id;
private String yhId;
private String beizhu;
private Date PTimestamp;
private String PZhuantai;
private String macaddress;
private String churen;
private String chushi;
private String azCmMac;
public CPayRecord_CFix(){
} public CPayRecord_CFix(
Integer id,
String yhId, String beizhu,
Date PTimestamp,String PZhuantai,
String macaddress, String churen,
String chushi
, String azCmMac
) {
this.id = id;
this.yhId = yhId;
this.beizhu = beizhu;
this.PTimestamp = PTimestamp;
this.PZhuantai = PZhuantai;
this.macaddress = macaddress;
this.churen = churen;
this.chushi = chushi;
this.azCmMac = azCmMac;
}
...get(),set()方法...
为何老是报
Cause:
org.hibernate.PropertyNotFoundException: no appropriate constructor in class: com.gehua.InfoSystem.pojo.CPayRecord_CFix
解决方案 »
- 怎么同时刷新两个网页?
- 吐血求救,qrcode关于jsp向servlet传递参数值!
- 会员登录后,可以显示信息。类似与在csdn上面的,登录后,在【通知】里显示几条信息的功能,要源代码。
- 新手提问:记录集中,上一条记录怎么去不过来?谢谢
- 为什么servlet执行了init方法,不执行dopost方法?
- javamail测试帐号问题
- 我的系统是2000 我想用sql server tomcat apache结合 应该怎么来配置呢!!
- 今天戴上了RedHat!散分!
- 关于运行servlet的问题!
- 请JSP问有没有现成工具或类来画曲线图,就像PHP中的那个画图工具一样
- oracle 连接问题
- 两个小问题
你有这个CPayRecord 类吗?
select new com.gehua.InfoSystem.pojo.CPayRecord_CFix(cp.id,cp.yhId,cp.beizhu,cp.PTimestamp,cp.PZhuantai,cp.macaddress,cp.churen,cp.chushi,cf.azCmMac) from CPayRecord as cp ,CFix as cf where cp.yhId=cf.yhId";
这里的参数顺序和构造函数的参数顺序是一样的啊,但是我测试了一下只查一个表的时候就不报错