休眠带时区的时间戳 [英] Hibernate Timestamp with Timezone
本文介绍了休眠带时区的时间戳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Hibernate的新手,正在使用Oracle 10g数据库。我们在表格中有<
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屋!
查看全文