MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
AK-Tec
Post subject: JPA, reverse engineering: Date column annotation  PostPosted: Apr 10, 2008 - 05:56 PM
Registered Member
Registered Member


Joined: Mar 14, 2008
Posts: 5

Hello,

Iam using the myeclipse version "6.0.1 GA" and JPA support with a mssql Server 2005.

Date fields have the generated annotation "@Temporal(TemporalType.DATE)". If I save a entity, all date fields are saved without time (e.g. 2008-01-01 00:00:00.000).

If I use the annotation "@Temporal(TemporalType.TIMESTAMP)", everything works fine, time of date is correct saved.

How can I generate this annotation for date fields?

best regards
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: JPA, reverse engineering: Date column annotation  PostPosted: Apr 11, 2008 - 04:05 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8012

AK-Tec,
I have asked someone from the dev team to take a look at this. He will get back to you asap..

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
AK-Tec
Post subject:   PostPosted: Apr 11, 2008 - 04:11 PM
Registered Member
Registered Member


Joined: Mar 14, 2008
Posts: 5

This would be great.

best regards
 
 View user's profile Send private message  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Apr 11, 2008 - 07:50 PM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2508

AK-Tec,

There seems to be a bug in the RE process which is mapping all data / time fields to TemporalType.DATE. I've filed a PR against this issue for further review. Can you please tell me exactly what data type you were using in your MS SQL column?

I'm afraid I can suggest no workarounds right now, sorry for the inconvenience caused.

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
AK-Tec
Post subject:   PostPosted: Apr 14, 2008 - 08:57 AM
Registered Member
Registered Member


Joined: Mar 14, 2008
Posts: 5

Hello Brian,

it's a nullable datetime column in MS-Sql-Server 2005

best regards
 
 View user's profile Send private message  
Reply with quote Back to top
AK-Tec
Post subject:   PostPosted: Apr 22, 2008 - 12:40 PM
Registered Member
Registered Member


Joined: Mar 14, 2008
Posts: 5

Are there some news?
 
 View user's profile Send private message  
Reply with quote Back to top
DmitryNegoda
Post subject:   PostPosted: Oct 01, 2008 - 06:49 PM



Joined: Oct 01, 2008
Posts: 1

AK-Tec wrote:
Are there some news?


Same here. I use PostgreSQL 8. MyEclipse reverse engineering tool generates TemporalType.DATE annotation for TIMESTAMP fields. Have to manually change to TemporalType.TIMESTAMP.
 
 View user's profile Send private message  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Oct 01, 2008 - 06:59 PM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2508

This problem has been fixed in MyEclipse 7.0M2 and will be part of the 7.0GA release. Unfortunately I cannot suggest a workaround for other MyEclipse versions.

Sorry for the inconvenience caused .

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits