正确:
Update Cat t set t.birthday=? where t.id = ?
t.setTimestamp(0,new Date());
错误:
Update Cat t set t.birthday=new Date() where t.id = ?
hibernate 利用 hql 如何更新 DATE 字段
最新推荐文章于 2021-04-10 16:15:43 发布
正确:
Update Cat t set t.birthday=? where t.id = ?
t.setTimestamp(0,new Date());
错误:
Update Cat t set t.birthday=new Date() where t.id = ?