|
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 Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Stefanie,
The best in this case is to use a @Column annotation, here is described how to do annotations:
https://wiki.eclipse.org/Teneo/Hibernate#Model_Relational_Mapping_with_EJB3.2FJPA_Annotations
Annotations can also be done on an EDataType so then they are re-used by all the eattributes using the edatatype.
gr. Martin
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!
> Steffi
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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.02787 seconds