Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO/Hibernate] Date Types
[CDO/Hibernate] Date Types [message #989045] Tue, 04 December 2012 07:27 Go to previous message
Christoph Keimel is currently offline Christoph Keimel
Messages: 277
Registered: December 2010
Location: Germany
Senior Member
Hello

What are your experiences with date types (DATE, TIME, DATETIME) using CDO with the Hibernate store? Are there any known best practices?

In my case, I would like to the database columns to be created with the respective types (DATE, TIME, DATETIME). From a coding point of view it would probably be the easiest to work with java.util.Date or java.util.Calendar. The model should automatically discard unwanted information (i.e. the TIME information for a DATE field).

There are lots of possibilities, including but not limited to:
- using EDate and setting the column type in the mapping
- wrapping java.util.Date or java.util.Calendar
- wrapping Long as in java.util.Date.getTime
- using XMLGregorianCalendar

Any pointers on how to get started are most welcome Smile

Thanks
Christoph

 
Read Message
Read Message
Read Message
Previous Topic:Property Sheet is empty when selecting an (EMF-)object in tree viewer using a custom ViewPart
Next Topic:[CDO] org.eclipse.emf.cdo.common.util.PartialCollectionLoadingNotSupportedException
Goto Forum:
  


Current Time: Tue May 21 09:43:20 EDT 2013

Powered by FUDForum. Page generated in 0.02387 seconds