Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » teneo - java.util.Date mapped to DATE, time information is lost
teneo - java.util.Date mapped to DATE, time information is lost [message #595476] Sun, 12 November 2006 22:34
Andre Pareis is currently offline Andre PareisFriend
Messages: 113
Registered: July 2009
Senior Member
Hi,

I have attributes of type java.sql.Date in my model. These are mapped to SQL
type DATE (tested in HSQLDB and MySQL) so it loses the time information after
reading back the value.

I have tried it with a java.sql.Timestamp but this was also mapped to DATE and
the time information was lost.

Can you recommend how to map java.util.Date correctly? I would like to use the
java.util.Date type if possible. Only if there is no way how to do it, then I
would fall back to a long or even a formatted string (but those 2 would be
harder to handle on the GUI).

Any suggestions?

Thanks
Andre
Previous Topic:teneo and volume data
Next Topic:teneo - java.util.Date mapped to DATE, time information is lost
Goto Forum:
  


Current Time: Fri Apr 26 11:19:58 GMT 2024

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

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

Back to the top