---
title: "Hibernate HQL更新时间问题"
author: "ttling"
date: "2014-04-17T11:20:25Z"
tags: []
categories: ["企业架构"]
slug: "hibernate-hql"
draft: false
lastmod: "2014-04-17T11:20:25Z"
id: 2047719
url: "https://ttling.iteye.com/blog/2047719"
---

hibernate的HQL在执行更新时间的时候，使用setDate时分秒会被hibernate过滤掉，所以使用setTimestamp来保存时分秒