@Temporal(javax.persistence.TemporalType.DATE)
private Date docDate;
public Date getDocDate() {
return docDate;
}
public void setDocDate(Date docDate) {
this.docDate = docDate;
}
存儲日期值,但誤差這樣表示如何使用Hibernate
Error setting expression 'docDate' with value '[Ljava.lang.String;@843f72'
ognl.MethodFailedException: Method "setDocDate" failed for object [email protected] [java.lang.NoSuchMethodException: net.top.app.entity.document.Document_$$_javassist_4.setDocDate([Ljava.lang.String;)]
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1285)
at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1474)
請告訴我SQL類型'docDate'列? – Zutty
docDate列類型是日期 – praba
哪個版本的Ognl使用 – NPKR