正确:
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 字段
最新推荐文章于 2024-01-25 00:56:35 发布
正确:
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 = ?