Teneo and java.util.Calendar [message #70709] |
Wed, 07 February 2007 02:54  |
Eclipse User |
|
|
|
Originally posted by: pascal.pugatsch.inventage.com
Hi,
I have attributes of "java.util.Calendar" in the model.
So far Teneo generates the mapping "timestamp" for that type by default. I
would though prefer using hibernates "calendar" or "calendar_date" as
target mapping. Is there a way to define this in the model similar to the
annotation @temporal but in the context of calendar (sql type in my db is
"datetime")?
Thanks for any suggestions.
Cheers, Pascal
|
|
|
|
|
Re: Teneo and java.util.Calendar [message #602278 is a reply to message #70709] |
Wed, 07 February 2007 03:24  |
Eclipse User |
|
|
|
Hi Pascal,
You can use the @Type(type="calendar") annotation (=hibernate specific) on the eattribute. This
annotation can also be set on the EDataType (more practical if all the calendar eattributes use the
same EDataType).
There will also be an option to set the default temporal mapping globally. If you like that feature
then please enter a bugzilla so that I will pick it up quicker.
gr. Martin
Pascal Pugatsch wrote:
> Hi,
>
> I have attributes of "java.util.Calendar" in the model. So far Teneo
> generates the mapping "timestamp" for that type by default. I would
> though prefer using hibernates "calendar" or "calendar_date" as target
> mapping. Is there a way to define this in the model similar to the
> annotation @temporal but in the context of calendar (sql type in my db
> is "datetime")?
>
> Thanks for any suggestions.
> Cheers, Pascal
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
|
Powered by
FUDForum. Page generated in 0.17526 seconds