MyEclipse: JPA, reverse engineering: Date column annotation AK-Tec - Apr 10, 2008 - 05:56 PM Post subject: JPA, reverse engineering: Date column annotation
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 regardssupport-nipun - Apr 11, 2008 - 04:05 PM Post subject: RE: JPA, reverse engineering: Date column annotation
AK-Tec,
I have asked someone from the dev team to take a look at this. He will get back to you asap..AK-Tec - Apr 11, 2008 - 04:11 PM Post subject:
This would be great.
best regardsSupport-Brian - Apr 11, 2008 - 07:50 PM Post subject:
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.AK-Tec - Apr 14, 2008 - 08:57 AM Post subject:
Hello Brian,
it's a nullable datetime column in MS-Sql-Server 2005
best regardsAK-Tec - Apr 22, 2008 - 12:40 PM Post subject:
Are there some news?DmitryNegoda - Oct 01, 2008 - 06:49 PM Post subject:
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.Support-Brian - Oct 01, 2008 - 06:59 PM Post subject:
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.