| Author |
Message |
|
|
Post subject: JPA, reverse engineering: Date column annotation
Posted: Apr 10, 2008 - 05:56 PM
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: JPA, reverse engineering: Date column annotation
Posted: Apr 11, 2008 - 04:05 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 5662
|
|
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
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 11, 2008 - 04:11 PM
|
|
Joined: Mar 14, 2008
Posts: 5
|
|
This would be great.
best regards |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 11, 2008 - 07:50 PM
|
|
Moderator


Joined: Aug 21, 2004
Posts: 1294
|
|
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
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 14, 2008 - 08:57 AM
|
|
Joined: Mar 14, 2008
Posts: 5
|
|
Hello Brian,
it's a nullable datetime column in MS-Sql-Server 2005
best regards |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 22, 2008 - 12:40 PM
|
|
Joined: Mar 14, 2008
Posts: 5
|
|
|
|
|
 |
|
|
Post subject:
Posted: 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. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Oct 01, 2008 - 06:59 PM
|
|
Moderator


Joined: Aug 21, 2004
Posts: 1294
|
|
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
|
| |
|
|
|
 |
|
|