当前页面: 开发资料首页 → J2SE 专题 → hibernate2 的时间比较问题
hibernate2 的时间比较问题
摘要: hibernate2 的时间比较问题
如果我用 sysdate >= mytbl.createtime(时间类型) +3
执行没有问题
但是如果我用
to_date('2006-03-03','yyyy-mm-dd') >= (mytbl.createtime + 3)
就出错误
Hibernate ExceptionSession is closed
2006-11-05 20:42:24,718 [org.apache.struts.action.RequestProcessor]-[WARN] Unhandled Exception thrown: class java.lang.RuntimeException
这是为什么呀
没碰到过,帮顶!