Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Teneo and java.util.Calendar
Teneo and java.util.Calendar [message #70709] Wed, 07 February 2007 07:54 Go to next message
Eclipse UserFriend
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 #70717 is a reply to message #70709] Wed, 07 February 2007 08:24 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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
Re: Teneo and java.util.Calendar [message #71674 is a reply to message #70717] Thu, 15 February 2007 10:10 Go to previous message
Eclipse UserFriend
Originally posted by: pascalpugatsch.hotmail.com

Hi Martin,

thanks, it works!
cheers, Pascal
Re: Teneo and java.util.Calendar [message #602278 is a reply to message #70709] Wed, 07 February 2007 08:24 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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
Re: Teneo and java.util.Calendar [message #602582 is a reply to message #70717] Thu, 15 February 2007 10:10 Go to previous message
Eclipse UserFriend
Originally posted by: pascalpugatsch.hotmail.com

Hi Martin,

thanks, it works!
cheers, Pascal
Previous Topic:copier.copyReferences() causes stack overflow
Next Topic:teneo and ID
Goto Forum:
  


Current Time: Thu Apr 25 14:32:23 GMT 2024

Powered by FUDForum. Page generated in 0.03174 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top