occurred while calling setter of .......Timestamp

    如题说是,出现这个问题了一般是setter不存在或者是property 中配置的property 两个名字对应不一致。

    但是,现在的重点不是这个。是导入的包的错误,这个也会导致出现上述错误。

其实,出现问题的字段是timestamp类型的。但是,导入包的时候,不知道怎么导入的是com.sun.jmx.snmp.Timestamp;

而不是java.sql.Timestamp;下的,我的错误的原因是这个问题,很low,但是很无奈。记一下,这是第二次出现这个问题了

IllegalArgumentException occurred while calling setter of com.entity.CmpShowmesf

02-13

CmpShowmesfirst:rnpackage com.entity;rnrnimport java.math.BigDecimal;rnrn/**rn * CmpShowmesfirst entity. @author MyEclipse Persistence Toolsrn */rnrnpublic class CmpShowmesfirst implements java.io.Serializable rnrn // Fieldsrnrn private BigDecimal csfId;rn private String csfTitle;rn private String csfContent;rn private BigDecimal csfPicid;rn public BigDecimal getCsfId() rn return csfId;rn rn public void setCsfId(BigDecimal csfId) rn this.csfId = csfId;rn rn public String getCsfTitle() rn return csfTitle;rn rn public void setCsfTitle(String csfTitle) rn this.csfTitle = csfTitle;rn rn public String getCsfContent() rn return csfContent;rn rn public void setCsfContent(String csfContent) rn this.csfContent = csfContent;rn rn public BigDecimal getCsfPicid() rn return csfPicid;rn rn public void setCsfPicid(BigDecimal csfPicid) rn this.csfPicid = csfPicid;rn rn public BigDecimal getCsfTypeid() rn return csfTypeid;rn rn public void setCsfTypeid(BigDecimal csfTypeid) rn this.csfTypeid = csfTypeid;rn rn public CmpSmfPic getCmpsmfpic() rn return cmpsmfpic;rn rn public void setCmpsmfpic(CmpSmfPic cmpsmfpic) rn this.cmpsmfpic = cmpsmfpic;rn rn private BigDecimal csfTypeid;rn public CmpShowmesfirst(BigDecimal csfId, String csfTitle,rn String csfContent, BigDecimal csfPicid, BigDecimal csfTypeid,rn CmpSmfPic cmpsmfpic) rn super();rn this.csfId = csfId;rn this.csfTitle = csfTitle;rn this.csfContent = csfContent;rn this.csfPicid = csfPicid;rn this.csfTypeid = csfTypeid;rn this.cmpsmfpic = cmpsmfpic;rn rn public CmpShowmesfirst() rn super();rn rn private CmpSmfPic cmpsmfpic;rnrn // ConstructorsrnrnrnCmpSmfPic:rnpackage com.entity;rnrnimport java.math.BigDecimal;rnrn/**rn * CmpSmfPic entity. @author MyEclipse Persistence Toolsrn */rnrnpublic class CmpSmfPic implements java.io.Serializable rnrn // Fieldsrnrn private BigDecimal cspId;rn private BigDecimal cspCsfid;rn private String cspPic;rnrn // Constructorsrnrn /** default constructor */rn public CmpSmfPic() rn rnrn /** full constructor */rn public CmpSmfPic(BigDecimal cspCsfid, String cspPic) rn this.cspCsfid = cspCsfid;rn this.cspPic = cspPic;rn rnrn // Property accessorsrnrn public BigDecimal getCspId() rn return this.cspId;rn rnrn public void setCspId(BigDecimal cspId) rn this.cspId = cspId;rn rnrn public BigDecimal getCspCsfid() rn return this.cspCsfid;rn rnrn public void setCspCsfid(BigDecimal cspCsfid) rn this.cspCsfid = cspCsfid;rn rnrn public String getCspPic() rn return this.cspPic;rn rnrn public void setCspPic(String cspPic) rn this.cspPic = cspPic;rn rnrnrnCmpShowmesfirst.hbm.xml:rnrnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrnCmpSmfPic.hbm.xml:rnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrnrnrnrnrn

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试

关闭