休眠带时区的时间戳 [英] Hibernate Timestamp with Timezone

查看:157
本文介绍了休眠带时区的时间戳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Hibernate的新手,正在使用Oracle 10g数据库。我们在表格中有< TIMESTAMP WITH TIMEZONE 类型的列。 Hibernate似乎并不直接支持这种映射。有没有一个标准的方式来解决这个问题?

I'm new to Hibernate and am working with an Oracle 10g database. We have columns in our tables that are of type TIMESTAMP WITH TIMEZONE. Hibernate does not seem to support this mapping directly. Is there a standard way to go about this?

推荐答案

一个UserType的例子存储java.util.Calendar与时区信息在此博客文章中给出: http:/ /www.joobik.com/2010/12/mapping-dates-and-time-zones-with.html

An example of a UserType storing java.util.Calendar with time zone information is given in this blog post: http://www.joobik.com/2010/12/mapping-dates-and-time-zones-with.html

这篇关于休眠带时区的时间戳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆