Oracle Date类型字段使用Hibernate插入后没有时分秒的解决

来源:互联网 发布:网络教育专升本难吗 编辑:程序博客网 时间:2024/05/17 03:00

Oracle Date类型字段,在使用Hibernate插入后只有年月日,时分秒显示12:00:00。

 

如果使用annotation的话,将

 

替换为

 

即可。