|Re: [Teneo] How can I persist java.util.Calendar as "timestamp with timezone"? [message #1691744 is a reply to message #1691698]
||Thu, 09 April 2015 12:08
| Martin Taal
Registered: July 2009
The best in this case is to use a @Column annotation, here is described how to do annotations:
Annotations can also be done on an EDataType so then they are re-used by all the eattributes using the edatatype.
On 09-04-15 09:01, Stefanie Müller wrote:
> Hi everybody,
> I've modeled an entity which has an attribute of type java.util.Calendar, which I want to persist in a postgreSQL
> database. Teneo generates the database column for that as "timestamp without timezone". To prevent loosing timezone
> information, I would like to persist it as "timestamp with timezone". Does somebody know, how this can be achieved?
> Thanks in advance!
With Regards, Martin Taal
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Powered by FUDForum
. Page generated in 0.02194 seconds