Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Java SDO DataObject does not support java.util.GregorianCalendar ?
Java SDO DataObject does not support java.util.GregorianCalendar ? [message #418799] Wed, 30 April 2008 02:41 Go to next message
Eclipse UserFriend
Originally posted by: lanlan99999.hotmail.com

Hi guys,

I have a customized DataGraph contains a java.util.GregorianCalendar
field. While deserializing the DataGraph, EMF reconstructed the field as
Integer field with value 0 assigned... Is there anyway I can make it
retain the data type GregorianCalendar?
Re: Java SDO DataObject does not support java.util.GregorianCalendar ? [message #418867 is a reply to message #418799] Wed, 30 April 2008 11:41 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Lan,

You'd have to define an EDataType for it and specialize the generated
factory's createMyDataTypeFromString/convertMyDataTypeToString methods.


Lan wrote:
> Hi guys,
>
> I have a customized DataGraph contains a java.util.GregorianCalendar
> field. While deserializing the DataGraph, EMF reconstructed the field
> as Integer field with value 0 assigned... Is there anyway I can make
> it retain the data type GregorianCalendar?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Question to:Recipe:_Create_an_Eclipse_Forms_editor_with_widgets_for_your_propert
Next Topic:Standard data types in .ecore editor.
Goto Forum:
  


Current Time: Fri Apr 26 09:07:42 GMT 2024

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

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

Back to the top